/* ============================================
   Login Page - Stylesheet
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --primary-dark: #0e0f14;
    --primary-mid: #161821;
  
    --primary-olive: #3a3d52;
    --primary-yellow: var(--login-accent);


    --gradient-primary: linear-gradient(135deg, #080b16 0%, #1e263e 100%);
    --gradient-login-bg: var(--gradient-primary);
    --gradient-page-bg: var(--gradient-primary);

    --login-accent: #4fd1c5;
    --login-accent-hover: #37c7bc;
    --login-accent-soft: rgba(79, 209, 197, 0.18);
    --login-accent-glow: rgba(79, 209, 197, 0.16);

    /* Accent Colors */
    --success: #4CAF50;
    --success-hover: #45a049;
    --danger: #e74c3c;
    --danger-hover: #c0392b;
    --blue-accent: #1a73e8;
    --blue-link: #7ecfff;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #F8F9FB;
    --gray-100: #EEF2FF;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(26, 26, 78, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 26, 78, 0.08);
    --shadow-lg: 0 8px 30px rgba(26, 26, 78, 0.12);

    /* Typography */
    --font-family: var(--font-body, 'Heebo', sans-serif);
    --font-heading: 'Lexend', 'Heebo', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-page-bg);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* --- Utility Classes --- */
.hidden {
    display: none;
}

/* --- Login Container --- */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 0;
    background: #080b16;
    overflow-x: hidden;
}

.bg-glow-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse 115% 115% at 50% 32%, transparent 42%, #080b16 92%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(135deg, #080b16 0%, #1e263e 100%);
    background-size:
        cover,
        38px 38px,
        38px 38px,
        cover;
    background-position: center, center top, center top, center;
    background-attachment: fixed, fixed, fixed, fixed;
    background-repeat: no-repeat, repeat, repeat, no-repeat;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.22;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.orb-1 {
    top: -15%;
    left: -15%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.25) 0%, rgba(30, 38, 62, 0.08) 60%, transparent 100%);
    animation: float-slow 22s ease-in-out infinite alternate;
}

.orb-2 {
    top: 55%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.22) 0%, rgba(8, 11, 22, 0.08) 60%, transparent 100%);
    animation: float-slow 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    bottom: -15%;
    left: 15%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, rgba(30, 38, 62, 0.06) 60%, transparent 100%);
    animation: float-rotate 32s linear infinite;
}

.orb-4 {
    top: 15%;
    right: 15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.14) 0%, rgba(8, 11, 22, 0.06) 60%, transparent 100%);
    animation: float-slow 25s ease-in-out infinite alternate;
    animation-delay: -4s;
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(6%, -5%) scale(1.08);
    }
    100% {
        transform: translate(-4%, 6%) scale(0.96);
    }
}

@keyframes float-rotate {
    0% {
        transform: rotate(0deg) translate(4%, 0) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translate(4%, 0) rotate(-360deg);
    }
}

.login-header,
.login-main,
.login-footer {
    position: relative;
    z-index: 1;
}

/* --- Login Header --- */
.login-header {
    background: rgba(13, 16, 23, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-branding {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px !important;
    max-height: none !important;
    width: auto !important;
    cursor: pointer;
    object-fit: contain;
    display: block;
}

.login-ey-logo {
    height: 4.6vw !important;
    min-height: 54px !important;
    max-height: 62px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.brand-separator {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 1rem;
}

.client-logo {
    height: 28px !important;
    width: auto !important;
}

.header-tagline {
    color: var(--white);
    font-size: 1.4rem !important;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading, 'Lexend', sans-serif);
    letter-spacing: -0.02em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    max-width: 75%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.95;
}

.header-tagline.hidden {
    display: none;
}

/* --- Login Main --- */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem 2rem; 
    position: relative;
    overflow: visible;
    background: transparent;
    width: 100%;
}

/* --- Branding Section --- */
.branding-section {
    width: 45%;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.branding-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-heading, 'Lexend', sans-serif);
}

.branding-divider,
.branding-hr {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--login-accent) 0%, rgba(79, 209, 197, 0) 100%);
    margin-bottom: 2.5rem;
    border: none;
    border-radius: 2px;
}

.branding-text {
    font-size: 1.3rem !important;
    /* Increased font size */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-family: var(--font-body, 'Heebo', sans-serif);
    /* Changed font to Montserrat */
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    /* Removing any margin */
}

/* --- Login Form Section --- */
.login-form-section {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Login Card Branding --- */
.card-brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-brand-title {
    font-family: var(--font-heading, 'Lexend', sans-serif);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.brand-tld {
    color: var(--login-accent);
    background: linear-gradient(135deg, var(--login-accent) 0%, #2b9e94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-brand-subtitle {
    font-family: var(--font-body, 'Heebo', sans-serif);
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.login-card {
    width: 100%;
    position: relative;
    z-index: 2;
    background: rgba(10, 14, 26, 0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 3.5rem 3rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(79, 209, 197, 0.03);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-input-label {
    font-family: var(--font-body, 'Heebo', sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-align: left;
    margin-bottom: 0.35rem;
    display: block;
}

.password-group {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input:focus {
    outline: none;
    border-color: var(--login-accent);
    box-shadow: 0 0 12px rgba(79, 209, 197, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.85);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Dark eye icon when autofills the password */
.login-input:-webkit-autofill+.password-toggle svg {
    stroke: rgba(0, 0, 0, 0.6);
}

/* --- Terms and Conditions --- */
.terms-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 0.875rem;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--login-accent);
    cursor: pointer;
}

.terms-label {
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
}

.terms-link {
    color: var(--login-accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #8ad6ff;
}

/* --- Login Button --- */
.login-btn {
    background: linear-gradient(135deg, var(--login-accent) 0%, #2b9e94 100%);
    color: #07121a;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(79, 209, 197, 0.35);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--login-accent-hover) 0%, #1e857c 100%);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.5);
    color: #07121a;
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.login-btn .loader {
    border: 2px solid rgba(7, 18, 26, 0.3);
    border-top-color: #07121a;
}

/* --- Error Message --- */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

.error-message.hidden {
    display: none;
}

/* --- Loader --- */
.loader {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Login Links --- */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.link-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.link-item:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Login Footer --- */
.login-footer {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    width: 100%;
    margin-top: auto;
}

.footer-link {
    color: #ffffff80;
    /* Matched color with copyright */
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    margin-bottom: 1.5rem;
}

.modal-icon svg {
    display: inline-block;
}

.modal-title {
    font-family: var(--font-heading, 'Lexend', sans-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modal-message {
    font-family: var(--font-body, 'Heebo', sans-serif);
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-btn {
    background: linear-gradient(135deg, var(--login-accent) 0%, #2b9e94 100%);
    color: #07121a;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2.5rem;
    font-family: var(--font-body, 'Heebo', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 209, 197, 0.28);
}

.modal-btn:active {
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .login-main {
        padding: 6rem 2rem 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .login-header {
        padding: 1rem 1.5rem;
    }

    .header-tagline {
        display: none;
    }

    .login-main {
        padding: 5rem 1rem 3rem 1rem;
    }

    .login-form-section {
        width: 100%;
        padding: 0;
    }

    .login-card {
        max-width: 100%;
        padding: 2rem;
    }

    .login-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        justify-content: center;
    }

    .header-tagline {
        display: none;
    }

    .brand-wordmark {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 32px !important;
    }

    .login-ey-logo {
        height: 46px !important;
        min-height: 0 !important;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
    }

    .brand-wordmark {
        font-size: 0.95rem;
    }

    .login-main {
        padding: 4.5rem 0.75rem 2.5rem 0.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .branding-text {
        font-size: 0.875rem;
    }

    .login-input {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .login-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .modal-card {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-message {
        font-size: 0.875rem;
    }
}


/* ═══════════════════════════════════════
   Need Help — Pill Button
═══════════════════════════════════════ */
.need-help-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.need-help-pill:hover {
    background: rgba(79, 209, 197, 0.12);
    border-color: rgba(79, 209, 197, 0.3);
    color: rgba(180, 255, 245, 0.95);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   Need Help — Overlay
═══════════════════════════════════════ */
.nh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 20, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* ═══════════════════════════════════════
   Need Help — Modal Card
═══════════════════════════════════════ */
.need-help-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(28, 28, 38, 0.98), rgba(18, 18, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    margin: 1rem;
    animation: nhReveal 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes nhReveal {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* EY yellow glow orb top-right */
.nh-glow-orb {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.need-help-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.25rem;
    flex-shrink: 0;
}

.nh-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    font-family: var(--font-heading, 'Lexend', sans-serif);
}

.nh-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.need-help-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}
.need-help-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.need-help-body {
    position: relative;
    z-index: 1;
    padding: 0 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

/* Elegant scrollbar for need help body */
.need-help-body::-webkit-scrollbar {
    width: 6px;
}
.need-help-body::-webkit-scrollbar-track {
    background: transparent;
}
.need-help-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.need-help-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Form Fields ── */
.nh-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nh-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nh-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}
.nh-input::placeholder { color: rgba(255, 255, 255, 0.2); }
.nh-input:focus {
    border-color: rgba(79, 209, 197, 0.45);
    box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.1);
    background: rgba(255, 255, 255, 0.06);
}
.nh-textarea { resize: none; line-height: 1.5; }

/* ── Submit Button ── */
.nh-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--login-accent) 0%, #2b9e94 100%);
    color: #07121a;
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.25);
}
.nh-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--login-accent-hover) 0%, #1e857c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
    color: #07121a;
}
.nh-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.nh-submit-btn .loader {
    border: 2px solid rgba(7, 18, 26, 0.3);
    border-top-color: #07121a;
}

/* ── Status Messages ── */
.nh-success-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #86efac;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
}

.nh-error-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

/* ── Divider ── */
.nh-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}
.nh-divider-line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.nh-divider-text { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); white-space: nowrap; }

/* ── WhatsApp Button ── */
.nh-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.22);
    color: #86efb4;
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}
.nh-whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.35);
    color: #86efb4;
    transform: translateY(-1px);
}
.nh-whatsapp-btn i { font-size: 1.1rem; }

/* ═══════════════════════════════════════
   Height-Based Responsive Adjustments
═══════════════════════════════════════ */
@media (max-height: 850px) {
    .login-header {
        padding: 0rem 3rem;
        min-height: 76px;
    }
    .login-main {
        padding: 0.25rem 4rem;
        gap: 2rem;
    }
    .branding-divider,
    .branding-hr {
        margin-bottom: 1.5rem;
    }
    .branding-text {
        margin-bottom: 0.75rem;
    }
    .login-card {
        padding: 2rem;
        gap: 1.25rem;
    }
    .form-fields {
        gap: 1rem;
    }
    .login-footer {
        padding: 0.5rem 4rem;
    }
    
    /* Shrink margins inside form steps */
    #step1 .input-group,
    #step1 .terms-container,
    #step1 p,
    #step2 p,
    #step2 .otp-boxes-container,
    #errorMessage {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-height: 720px) {
    .login-header {
        padding: 0rem 2rem;
        min-height: 64px;
    }
    .login-main {
        padding: 0.25rem 3rem;
        gap: 1.5rem;
    }
    .branding-divider,
    .branding-hr {
        margin-bottom: 1rem;
    }
    .branding-text {
        margin-bottom: 0.5rem;
    }
    .login-card {
        padding: 1.5rem 2rem;
        gap: 1rem;
    }
    .form-fields {
        gap: 0.75rem;
    }
    .login-footer {
        padding: 0.25rem 3rem;
    }
    
    /* Shrink margins inside form steps further */
    #step1 .input-group,
    #step1 .terms-container,
    #step1 p,
    #step2 p,
    #step2 .otp-boxes-container,
    #errorMessage {
        margin-bottom: 0.85rem !important;
    }
  
    @media (max-height: 768px) {
        .need-help-header {
            padding: 1.5rem 1.5rem 1rem;
        }
        .nh-title {
            font-size: 1.5rem;
        }
        .need-help-body {
            padding: 0 1.5rem 2rem;
            gap: 0.75rem;
        }
        #nhFormSection {
            gap: 0.75rem;
        }
        .nh-field {
            gap: 0.25rem;
        }
        .nh-input {
            padding: 0.7rem 0.9rem;
            font-size: 0.85rem;
            border-radius: 12px;
        }
        .nh-submit-btn, .nh-whatsapp-btn, .nh-phone-btn {
            min-height: 42px;
            padding: 0.7rem;
            font-size: 0.85rem;
            border-radius: 10px;
        }
        .nh-divider {
            margin: 0.15rem 0;
        }
    }
    
    @media (max-height: 600px) {
        .need-help-header {
            padding: 1rem 1.25rem 0.75rem;
        }
        .nh-title {
            font-size: 1.35rem;
        }
        .nh-subtitle {
            font-size: 0.8rem;
        }
        .need-help-body {
            padding: 0 1.25rem 1.5rem;
            gap: 0.5rem;
        }
        #nhFormSection {
            gap: 0.5rem;
        }
        .nh-input {
            padding: 0.55rem 0.80rem;
            font-size: 0.8rem;
            border-radius: 10px;
        }
        .nh-submit-btn, .nh-whatsapp-btn, .nh-phone-btn {
            min-height: 38px;
            padding: 0.55rem;
            font-size: 0.8rem;
            border-radius: 8px;
        }
        .nh-divider {
            margin: 0.1rem 0;
        }
    }
}