﻿
:root {
    --text-main: #fffaf4;
    --text-muted: rgba(255, 248, 240, 0.72);
    --text-soft: rgba(255, 248, 240, 0.56);
    --border-soft: rgba(255, 255, 255, 0.18);
    /* Liquid Glass Colors */
    --glass: rgba(255, 255, 255, 0.10);
    --glass-strong: rgba(255, 255, 255, 0.16);
    --input-bg: rgba(255, 255, 255, 0.08);
    --btn-main: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.18) 100%);
    --shadow-main: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    --chip-bg: rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    /* min-height, not height: with a fixed 100% the background stopped at the
       viewport and a taller page (Choose Company) showed a bare band below it. */
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: #2B1D16;
    background-image: linear-gradient(rgba(43, 29, 22, 0.95), rgba(43, 29, 22, 0.95)), radial-gradient(circle at 18% 18%, rgba(231, 180, 149, 0.22), transparent 22%), radial-gradient(circle at 82% 24%, rgba(116, 78, 58, 0.14), transparent 18%), radial-gradient(circle at 50% 100%, rgba(154, 91, 60, 0.32), transparent 28%), linear-gradient(135deg, #2B1D16 0%, #9A5B3C 40%, #744E3A 100%);
    background-size: cover, cover, auto, auto, auto, auto;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        width: 280px;
        height: 280px;
        left: -60px;
        top: 80px;
        border-radius: 999px;
        filter: blur(90px);
        pointer-events: none;
        /* Negative, not 0 — paints behind everything in normal flow so it
           can never compete with .page-wrap's own stacking order (see the
           .page-wrap note below: that's what was trapping the popup). */
        z-index: -1;
        background: rgba(231, 180, 149, 0.22);
    }

    body::after {
        content: "";
        position: fixed;
        width: 340px;
        height: 340px;
        right: -100px;
        bottom: 40px;
        border-radius: 999px;
        filter: blur(90px);
        pointer-events: none;
        z-index: -1;
        background: rgba(154, 91, 60, 0.30);
    }

.page-wrap {
    position: relative;
    /* NOT z-index: 1 — an explicit z-index here makes .page-wrap its own
       stacking context, and Bootstrap's .modal-backdrop is appended as a
       plain sibling of <body> (outside this wrapper). A modal nested
       inside .page-wrap then gets compared as "the whole .page-wrap box
       (z-index 1)" vs "the backdrop (z-index 1050)" — the backdrop wins
       and washes out the entire popup, no matter how high the modal's own
       z-index is set. Leaving z-index unset (auto) lets the popup's own
       stacking context bubble up and be compared directly against the
       backdrop instead. The two blob pseudo-elements above are pinned to
       z-index:-1 so removing this doesn't let them show through content. */
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.login-shell {
    position: relative;
    border-radius: 34px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}

    .login-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%), radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%);
    }

.theme-card,
.form-card {
    position: relative;
    z-index: 1;
    height: 100%;
    border-radius: 28px;
    border: 1px solid var(--border-soft);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-card {
    padding: 28px;
}

.form-card {
    padding: 28px;
}

.form-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-mark {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.3rem;
    box-shadow: var(--shadow-soft);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin: 0;
}

.eyebrow {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.display-title {
    font-size: clamp(2rem, 5vw, 2rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.soft-line {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
}

.benefit-list {
    display: grid;
    gap: 14px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

    /* Bootstrap icons -> Font Awesome replacements */
    .benefit-item i {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.10);
        color: #fff4e8;
    }

.form-label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group-text,
.form-control {
    background: var(--input-bg);
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--text-main);
}

.input-group-text {
    border-right: 0;
    min-width: 48px;
    justify-content: center;
    border-radius: 16px 0 0 16px;
}

.form-control {
    border-left: 0;
    min-height: 54px;
    border-radius: 0 16px 16px 0;
    box-shadow: none;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.44);
    }

    .form-control:focus {
        background: rgba(255, 255, 255, 0.10);
        color: var(--text-main);
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: none;
    }

.password-wrap .form-control {
    border-right: 0;
    border-radius: 0;
}

.toggle-password {
    min-width: 52px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    background: var(--input-bg);
    color: rgba(255, 255, 255, 0.75);
}

    .toggle-password:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

.form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

    .form-check-input:checked {
        background-color: #d9c0a7;
        border-color: #d9c0a7;
    }

.form-check-label,
.forgot-link {
    color: rgba(255, 255, 255, 0.82);
}

.forgot-link {
    text-decoration: none;
}

    .forgot-link:hover {
        color: #fff !important;
    }

.btn-login {
    position: relative;
    min-height: 60px;
    border: 0;
    border-radius: 999px;
    background: var(--btn-main);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 2px rgba(0, 0, 0, 0.14), 0 8px 20px rgba(18, 10, 6, 0.14);
    padding: 6px 8px;
    overflow: hidden;
    transition: box-shadow 220ms ease, opacity 160ms ease;
}

    .btn-login:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .btn-login:hover:not(:disabled) {
        color: rgba(255, 255, 255, 0.96);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 2px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(18, 10, 6, 0.18);
    }

    .btn-login .signin-track {
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding-inline: 64px 64px;
    }

    .btn-login .signin-label {
        font-size: 1rem;
        color: rgba(36, 27, 22, 0.92);
        font-weight: 500;
        letter-spacing: -0.01em;
        transition: color 0.3s ease;
    }

    .btn-login.slider-complete .signin-label {
        color: #ffffff;
    }

    .btn-login .signin-knob {
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #ffffff 0%, #efe7de 100%);
        color: #9A5B3C;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .btn-login::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 35%, rgba(255, 255, 255, 0.03));
        pointer-events: none;
    }

.divider-text {
    position: relative;
    text-align: center;
    color: rgba(255, 255, 255, 0.56);
    margin: 24px 0 18px;
    font-size: 0.92rem;
}

    .divider-text::before,
    .divider-text::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 35%;
        height: 1px;
        background: rgba(255, 255, 255, 0.12);
    }

    .divider-text::before {
        left: 0;
    }

    .divider-text::after {
        right: 0;
    }

.social-btn {
    min-height: 62px;
    border-radius: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    font-size: 0.93rem;
    font-weight: 500;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .social-btn:hover {
        background: rgba(255, 255, 255, 0.13);
        color: #fff;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
        transform: translateY(-1px);
    }

    .social-btn .btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        font-size: 1.1rem;
    }

    .social-btn .btn-label {
        display: flex;
        flex-direction: column;
        text-align: left;
        line-height: 1.2;
    }

        .social-btn .btn-label span {
            font-weight: 600;
            font-size: 1rem;
        }

        .social-btn .btn-label small {
            font-size: 0.76rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.58);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

.signup-text {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
}

    .signup-text a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

.login-view {
    display: none;
}

    .login-view.active {
        display: block;
    }

.otp-card {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(43, 29, 22, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.otp-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.otp-subtext {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 16px;
}

    .otp-inputs input {
        /* Flex so all six boxes always fit the card width — on a phone the old
           fixed 46px (×6 + gaps = 326px) overflowed the ~242px row and the 6th
           box was clipped by .login-shell{overflow:hidden}. They cap at 46px so
           the desktop look is unchanged, and shrink to fit on narrow screens. */
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: 46px;
        aspect-ratio: 1 / 1;
        height: auto;
        text-align: center;
        font-size: 1.3rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.10);
        color: var(--text-main);
    }

        .otp-inputs input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.45);
            background: rgba(255, 255, 255, 0.16);
        }

.otp-error {
    color: #ffb5b5;
    font-size: 0.86rem;
    min-height: 18px;
}

#forgotPasswordModal .modal-dialog.help-modal-dialog {
    max-width: 900px;
}

.modal-content.glass-modal {
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.82);
    color: #1f2430;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    overflow: hidden;
}

/* Two-column "Need help signing in?" popup — illustration side + contact side. */
.help-modal-grid {
    display: flex;
}
.help-modal-side {
    position: relative;
    flex: 0 0 270px;
    background: linear-gradient(160deg, #dce7ff 0%, #eef3ff 55%, #ffffff 100%);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.help-side-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(154, 91, 60, 0.08);
    pointer-events: none;
}
.help-side-blob--1 { width: 260px; height: 260px; top: -70px; left: -90px; }
.help-side-blob--2 { width: 190px; height: 190px; bottom: -50px; right: -70px; background: rgba(154, 91, 60, 0.12); }
.help-side-icon {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(154, 91, 60, 0.16);
}
.help-side-icon > i {
    font-size: 2.3rem;
    color: #9A5B3C;
}
.help-side-icon-chat {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #9A5B3C;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 6px 14px rgba(154, 91, 60, 0.3);
}
.help-side-title {
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.25;
    color: #1f2430;
    margin-bottom: 0.75rem;
}
.help-side-text {
    color: rgba(31, 36, 48, 0.65);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.help-modal-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.75rem 1.75rem 1.5rem;
}
.help-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(154, 91, 60, 0.08);
    color: #9A5B3C;
    font-weight: 600;
    font-size: 0.85rem;
}
.help-title {
    font-weight: 800;
    font-size: 1.7rem;
    color: #1f2430;
    margin-bottom: 0.4rem;
}
.help-title-accent {
    color: #9A5B3C;
}

/* Glassmorphism: frosted, semi-transparent panel over the modal's own
   background, with a soft blur so whatever sits behind it (the tinted side
   panel bleeding through the rounded corners) reads as depth, not flatness. */
.contact-box--panel {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    padding: 1.5rem 1.4rem;
    margin-top: 1.1rem;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 10px 30px rgba(154, 91, 60, 0.08);
}

/* Claymorphism: a puffy, raised pill — soft dark shadow on one side, soft
   light "highlight" on the other, so each row reads as a raised card rather
   than a flat tinted rectangle. */
.contact-line--primary {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 6px 6px 14px rgba(37, 99, 235, 0.12),
                -4px -4px 10px rgba(255, 255, 255, 0.65);
}
.contact-line--alt {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.18);
    box-shadow: 6px 6px 14px rgba(25, 135, 84, 0.12),
                -4px -4px 10px rgba(255, 255, 255, 0.65);
}
.contact-phone-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #B87A58, #9A5B3C);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 4px 4px 10px rgba(37, 99, 235, 0.35),
                -2px -2px 6px rgba(255, 255, 255, 0.5);
}
.contact-phone-badge--alt {
    background: linear-gradient(135deg, #22a366, #198754);
    box-shadow: 4px 4px 10px rgba(25, 135, 84, 0.35),
                -2px -2px 6px rgba(255, 255, 255, 0.5);
}
.contact-phone-badge i {
    color: #fff;
}
.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9A5B3C;
    margin-bottom: 2px;
}
.contact-line--alt .contact-label {
    color: #198754;
}
.contact-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.75rem 0.4rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #9A5B3C;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 3px 3px 8px rgba(37, 99, 235, 0.18),
                -2px -2px 6px rgba(255, 255, 255, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-call:hover {
    color: #9A5B3C;
    transform: translateY(1px);
    box-shadow: 1px 1px 4px rgba(37, 99, 235, 0.2),
                inset 1px 1px 3px rgba(37, 99, 235, 0.12);
}
.contact-line--alt .contact-call:hover {
    box-shadow: 1px 1px 4px rgba(25, 135, 84, 0.2),
                inset 1px 1px 3px rgba(25, 135, 84, 0.12);
}
.contact-call-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #9A5B3C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.contact-line--alt .contact-call,
.contact-call-icon--alt {
    color: #198754;
}
.contact-line--alt .contact-call-icon {
    color: #198754;
}

@media (max-width: 767.98px) {
    .help-modal-grid {
        flex-direction: column;
    }
    .help-modal-side {
        flex: 0 0 auto;
        padding: 1.5rem;
    }
}

.modal-header,
.modal-footer {
    border-color: rgba(17, 24, 39, 0.08);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.modal-body {
    padding: 1.2rem 1.25rem 1.35rem;
}

.modal-title {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1f2430;
}

/* Guarantee stacking order over this page's own high z-index elements
   (e.g. .skip-link:focus at 9999) — the modal must always sit above its
   own backdrop, and the backdrop must never block clicks once dismissed. */
.modal-backdrop {
    z-index: 1050;
}

.modal-backdrop.show {
    opacity: .5;
}

.modal {
    z-index: 1055;
}

.modal-header {
    display: flex;
    justify-content: space-between;
}

.custom-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.06);
    color: #1f2430;
    transition: all 0.18s ease;
    flex-shrink: 0;
    margin-left: auto;
}

    .custom-close:hover {
        background: rgba(17, 24, 39, 0.12);
        transform: rotate(90deg);
    }

    .custom-close i {
        font-size: 1.1rem;
        line-height: 1;
    }

.btn-reset-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(220, 53, 69, 0.10);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #dc3545;
    border-radius: 999px;
    min-height: 46px;
    font-weight: 600;
    transition: all 0.18s ease;
}

    .btn-reset-soft:hover {
        background: rgba(220, 53, 69, 0.16);
        border-color: rgba(220, 53, 69, 0.32);
        color: #dc3545;
    }

    .btn-reset-soft i {
        font-size: 0.8rem;
        line-height: 1;
    }

.btn-reset-soft-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.16);
    flex-shrink: 0;
}

.btn-soft {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 14px;
    min-height: 46px;
}

    .btn-soft:hover {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

/* Inside the white "Need help signing in?" popup the dark glass look would
   be invisible against the white card — swap it for a light variant there
   without touching every other .btn-soft (Send OTP / Verify OTP / etc). */
.glass-modal .btn-soft {
    background: rgba(17, 24, 39, 0.05);
    border: 1px solid rgba(17, 24, 39, 0.12);
    color: #1f2430;
}

    .glass-modal .btn-soft:hover {
        background: rgba(17, 24, 39, 0.09);
        color: #1f2430;
    }

.reset-note {
    color: rgba(31, 36, 48, 0.62);
    font-size: 0.95rem;
}

.contact-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Solid, not a faint tint — the previous light-on-light gradient made the
       icon nearly invisible against the panel behind it. */
    background: linear-gradient(135deg, #744E3A, #9A5B3C);
    color: #fff;
    font-size: 1.3rem;
    border: 1px solid rgba(154, 91, 60, 0.35);
    box-shadow: 6px 6px 14px rgba(154, 91, 60, 0.28),
                -3px -3px 10px rgba(255, 255, 255, 0.6);
}

.contact-content {
    width: 100%;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: #9A5B3C;
}

.contact-subtext {
    font-size: 0.9rem;
    color: rgba(31, 36, 48, 0.62);
    margin-bottom: 14px;
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.03);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(31, 36, 48, 0.86);
    min-width: 0;
}

    .contact-left i {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(154, 91, 60, 0.08);
        color: #fff;
        flex-shrink: 0;
    }

.contact-number {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1f2430;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

    .contact-number:hover {
        color: #9A5B3C;
        text-decoration: none;
    }

.invalid-feedback {
    display: block;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

    .skip-link:focus {
        left: 16px;
        top: 16px;
        z-index: 9999;
        background: #fff;
        color: #111;
        padding: 10px 14px;
        border-radius: 12px;
    }

.btn-back-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
}

    .btn-back-icon:hover {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

/* Mode Icons Row */
.mode-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* Liquid Glass Chip */
.mode-chip {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.1rem;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -8px 14px rgba(255, 255, 255, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

    /* Shine */
    .mode-chip::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.10) 35%, transparent 100%);
        opacity: 0.9;
        pointer-events: none;
    }

    /* Reflection */
    .mode-chip::after {
        content: "";
        position: absolute;
        width: 140%;
        height: 140%;
        top: -120%;
        left: -120%;
        background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
        transform: rotate(25deg);
        transition: all 0.8s ease;
    }

    .mode-chip:hover::after {
        top: 100%;
        left: 100%;
    }

    /* Icon */
    .mode-chip i {
        position: relative;
        z-index: 2;
        display: inline-block;
        animation: waterWave 2.8s ease-in-out infinite;
        transition: color 0.25s ease, transform 0.35s ease;
    }

    /* Gold and white alternating colors */
    .mode-chip:nth-child(odd) i {
        color: #f5c542;
        animation-delay: 0s;
    }

    .mode-chip:nth-child(even) i {
        color: #ffffff;
        animation-delay: 0.25s;
    }

/* Water wave motion */
@keyframes waterWave {
    0% {
        transform: translateY(0px) scale(1);
        color: #f5c542;
    }

    25% {
        transform: translateY(-3px) scale(1.02);
        color: #ffffff;
    }

    50% {
        transform: translateY(0px) scale(1);
        color: #f5c542;
    }

    75% {
        transform: translateY(3px) scale(0.98);
        color: #ffffff;
    }

    100% {
        transform: translateY(0px) scale(1);
        color: #f5c542;
    }
}

.mode-chip:hover i {
    transform: translateY(-7px) scale(1.08);
    color: #ffffff;
}

/* Hover chip */
.mode-chip:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), inset 0 1px 1px rgba(255, 255, 255, 0.40), inset 0 -10px 18px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.30);
}

/* Active state */
.mode-chip.active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

    .mode-chip.active i {
        color: #f5c542;
    }

/* Staggered wave timing */
.mode-chip:nth-child(1) i {
    animation-delay: 0s;
}

.mode-chip:nth-child(2) i {
    animation-delay: 0.2s;
}

.mode-chip:nth-child(3) i {
    animation-delay: 0.4s;
}

.mode-chip:nth-child(4) i {
    animation-delay: 0.6s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .mode-chip,
    .mode-chip::after,
    .mode-chip i {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .btn-login,
    .social-btn,
    .custom-close,
    .mode-chip {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width:991.98px) {
    .theme-card {
        margin-bottom: 18px;
    }
}

@media (max-width:575.98px) {
    .login-shell {
        padding: 12px;
        border-radius: 26px;
    }

    .theme-card,
    .form-card {
        padding: 20px;
        border-radius: 22px;
    }

    .display-title {
        font-size: 2.5rem;
    }

    .form-top-row {
        align-items: flex-start;
    }

    .contact-box {
        flex-direction: column;
    }

    .contact-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-number {
        white-space: normal;
    }

    .social-btn {
        justify-content: flex-start;
    }

    /* Tighter gaps give the six OTP boxes a little breathing room on small phones. */
    .otp-inputs {
        gap: 8px;
    }

    .otp-card {
        padding: 16px;
    }
}

/* NextCms additions */
/* Login page: AtashiTech lockup above the form. */
.cms-login-lockup { max-width: 260px; width: 100%; height: auto; }
.cms-login-mark { width: 120px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }

/* NextCms: plain submit button for register / password pages, and the links under the form. */
.btn-auth { background: #9A5B3C; color: #fff; border: 0; border-radius: 14px; padding: 0.8rem 1rem; font-weight: 600; }
.btn-auth:hover, .btn-auth:focus { background: #7F4A31; color: #fff; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; font-size: 0.9rem; }
/* The auth card is dark glass: notes and links use light tones (the old #667085 / #9A5B3C were unreadable on it). */
.auth-links { color: rgba(255, 255, 255, 0.78); }
.auth-links a { color: #F3C6A2; font-weight: 600; text-decoration: none; }
.auth-links a:hover { color: #fff; text-decoration: underline; }
.auth-note { color: rgba(255, 255, 255, 0.78); font-size: 0.85rem; }
.form-check-label a { color: #F3C6A2; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-check-label a:hover { color: #fff; }
.legal-page h2 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal-page p, .legal-page li { color: #475467; }
