/* =====================
   Login Pages Styles
   (member-login + company-login)
   ===================== */

.login-page-section {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?w=1400&q=80') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
}

.login-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,15,30,0.92) 0%, rgba(12,50,100,0.85) 100%);
}

/* Card Row */
.login-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    min-height: 600px;
}

/* Left Panel */
.login-left {
    background: linear-gradient(160deg, #0c5db9 0%, #063a75 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.login-logo {
    width: 80px;
    margin-bottom: 28px;
    filter: brightness(0) invert(1);
}

.login-left h2 {
    font-size: 30px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.login-left p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Highlights */
.login-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.lh-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.lh-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.login-left-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.login-left-footer p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.login-left-footer a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.login-left-footer a:hover {
    text-decoration: underline;
}

/* Right Panel (Form) */
.login-right {
    background: white;
    padding: 50px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0d1b2a;
    margin-bottom: 6px;
}

.login-sub {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 28px;
}

.login-error {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.25);
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Form Groups */
.lf-group {
    margin-bottom: 20px;
}

.lf-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lf-icon {
    position: absolute;
    left: 14px;
    pointer-events: none;
}

.lf-input-wrap input {
    width: 100%;
    background: #f7f9fc;
    border: 1px solid #e8eef6;
    border-radius: 10px;
    padding: 13px 45px;
    font-size: 14px;
    color: #0d1b2a;
    transition: 0.3s ease;
    outline: none;
    font-family: 'Inter Tight', sans-serif;
}

.lf-input-wrap input:focus {
    border-color: #0c5db9;
    background: white;
    box-shadow: 0 0 0 3px rgba(12,93,185,0.1);
}

.lf-toggle-pass {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Options Row */
.lf-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.lf-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.lf-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0c5db9;
}

.lf-options a {
    font-size: 13px;
    color: #0c5db9;
    text-decoration: none;
    font-weight: 600;
}

.lf-options a:hover {
    text-decoration: underline;
}

/* Submit */
.lf-submit-btn {
    width: 100%;
    background: #0c5db9;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: 'Inter Tight', sans-serif;
}

.lf-submit-btn:hover {
    background: #094a92;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12,93,185,0.35);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8eef6;
}

.login-divider span {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

/* Help Button */
.lf-help-btn {
    display: block;
    text-align: center;
    border: 1.5px solid #e8eef6;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    transition: 0.3s ease;
}

.lf-help-btn:hover {
    border-color: #0c5db9;
    color: #0c5db9;
}

/* Company-specific overrides */
.company-left {
    background: linear-gradient(160deg, #0d1b2a 0%, #1a3050 100%);
}

.company-login-badge {
    display: inline-block;
    background: rgba(12,93,185,0.1);
    color: #0c5db9;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(12,93,185,0.25);
    margin-bottom: 12px;
}

.company-submit {
    background: #0d1b2a;
}

.company-submit:hover {
    background: #1a3050;
    box-shadow: 0 8px 24px rgba(13,27,42,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card-row {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 36px 24px;
        display: none; /* Hide on mobile to save space */
    }

    .login-right {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 28px 18px;
    }

    .lf-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
