/* ============================================
   Chalkwell Recruitment - Login Page Styles
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ============================================
   LEFT PANEL - Branding
   ============================================ */
.login-brand-panel {
    width: 42%;
    min-height: 100vh;
    background: linear-gradient(160deg, #0A1128 0%, #0D1B3E 40%, #0A1128 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 48px;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: url('../images/login-cityscape.jpg') center bottom / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background:
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(0, 86, 210, 0.1) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* Network nodes overlay */
.network-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}

.brand-logo img {
    width: 40px;
    height: 40px;
}

.brand-logo-text h3 {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.brand-logo-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 400;
}

.brand-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 16px;
}

.brand-headline .highlight {
    color: var(--accent-blue);
}

.brand-accent-line {
    width: 48px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
    margin-bottom: 20px;
}

.brand-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: auto;
}

.brand-features {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.brand-feature {
    text-align: center;
}

.brand-feature-icon {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.05);
}

.brand-feature-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.brand-feature span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 500;
    display: block;
    max-width: 90px;
}

/* ============================================
   RIGHT PANEL - Login Form
   ============================================ */
.login-form-panel {
    width: 58%;
    min-height: 100vh;
    background: var(--gray-50);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-panel::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 210, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.login-form-panel::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-signup-prompt {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.login-signup-prompt p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

.login-signup-prompt a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: var(--transition);
}

.login-signup-prompt a:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 36px;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-card-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.login-card-header p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.login-card-accent {
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    margin: 0 auto;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 28px;
}

.login-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.login-tab i {
    font-size: 1rem;
}

.login-tab:hover {
    color: var(--gray-600);
}

.login-tab.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

/* Form Fields */
.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom .input-icon {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.input-group-custom input {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px 12px 44px;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.input-group-custom input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.input-group-custom input::placeholder {
    color: var(--gray-400);
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 1;
}

.password-toggle:hover {
    color: var(--gray-600);
}

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

.form-check-custom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-custom input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-check-custom label {
    font-size: 0.85rem;
    color: var(--gray-500);
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--primary-blue-hover);
}

/* Login Button */
.btn-login-submit {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-submit:hover {
    background: var(--primary-blue-hover);
}

/* Security Footer */
.login-security {
    text-align: center;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.login-security p {
    font-size: 0.82rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.login-security i {
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand-panel {
        width: 100%;
        min-height: auto;
        padding: 32px 28px;
    }

    .login-brand-panel::before,
    .login-brand-panel::after {
        height: 100%;
        opacity: 0.15;
    }

    .brand-logo {
        margin-bottom: 28px;
    }

    .brand-headline {
        font-size: 1.85rem;
    }

    .brand-subtext {
        margin-bottom: 28px;
    }

    .brand-features {
        gap: 24px;
        justify-content: center;
    }

    .login-form-panel {
        width: 100%;
        min-height: auto;
        padding: 32px 24px 48px;
    }
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 28px 20px;
    }

    .brand-features {
        gap: 16px;
    }

    .brand-feature-icon {
        width: 44px;
        height: 44px;
    }

    .brand-feature span {
        font-size: 0.72rem;
    }

    .login-tabs {
        flex-direction: column;
    }

    .login-tab {
        justify-content: flex-start;
        padding: 12px 16px;
    }
}

.forgot-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(10, 17, 40, 0.18);
}

.forgot-modal .modal-title {
    font-weight: 800;
    color: var(--navy);
}

.forgot-help-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 10px 0 0;
}

.forgot-link.btn-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: inherit;
}

.forgot-link.btn-link:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}
