/* =========================================================
   CUSTOMER LOGIN PAGE
   ========================================================= */

.customer-login-page {
    --login-green: #16863f;
    --login-green-dark: #0f6b31;
    --login-green-soft: #eaf7ef;
    --login-green-pale: #f4faf6;
    --login-navy: #102018;
    --login-text: #26352d;
    --login-muted: #6d7a72;
    --login-border: #dfe8e2;
    --login-surface: #ffffff;
    --login-background: #f6f9f7;

    position: relative;
    min-height: calc(100vh - 88px);
    padding: 72px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(22, 134, 63, 0.09),
            transparent 27%
        ),
        radial-gradient(
            circle at 95% 82%,
            rgba(122, 186, 111, 0.12),
            transparent 30%
        ),
        var(--login-background);
}

.customer-login-page::before,
.customer-login-page::after {
    position: absolute;
    pointer-events: none;
    content: "";
    border-radius: 50%;
    filter: blur(4px);
}

.customer-login-page::before {
    top: -180px;
    right: -130px;
    width: 440px;
    height: 440px;
    background: rgba(31, 153, 72, 0.05);
}

.customer-login-page::after {
    bottom: -230px;
    left: -140px;
    width: 500px;
    height: 500px;
    background: rgba(119, 180, 103, 0.06);
}

.customer-login-page .container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.customer-login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.8fr);
    align-items: center;
    gap: 72px;
}

/* =========================================================
   INTRO PANEL
   ========================================================= */

.customer-login-intro {
    max-width: 610px;
}

.customer-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 62px;
    color: var(--login-navy);
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
}

.customer-login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    font-size: 1.18rem;
    background:
        linear-gradient(
            145deg,
            var(--login-green),
            var(--login-green-dark)
        );
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(22, 134, 63, 0.22);
}

.customer-login-copy {
    max-width: 560px;
}

.customer-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--login-green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.customer-login-kicker::before {
    width: 24px;
    height: 2px;
    content: "";
    background: var(--login-green);
    border-radius: 999px;
}

.customer-login-copy h1 {
    margin: 0;
    color: var(--login-navy);
    font-size: clamp(2.25rem, 4vw, 3.65rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.customer-login-copy p {
    max-width: 520px;
    margin: 20px 0 0;
    color: var(--login-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.customer-login-benefits {
    display: grid;
    gap: 18px;
    margin-top: 42px;
}

.customer-login-benefit {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: start;
    gap: 15px;
}

.customer-login-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--login-green);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--login-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(23, 48, 33, 0.05);
}

.customer-login-benefit div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.customer-login-benefit strong {
    color: var(--login-navy);
    font-size: 0.94rem;
    font-weight: 800;
}

.customer-login-benefit div span {
    color: var(--login-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.customer-login-trust {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 38px;
    padding: 11px 15px;
    color: var(--login-green-dark);
    font-size: 0.82rem;
    font-weight: 650;
    background: rgba(234, 247, 239, 0.72);
    border: 1px solid rgba(22, 134, 63, 0.12);
    border-radius: 999px;
}

.customer-login-trust i {
    font-size: 1rem;
}

/* =========================================================
   FORM COLUMN
   ========================================================= */

.customer-login-form-column {
    width: 100%;
    max-width: 470px;
    justify-self: end;
}

.customer-login-card {
    padding: 38px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(218, 228, 221, 0.95);
    border-radius: 24px;
    box-shadow:
        0 28px 70px rgba(26, 51, 34, 0.1),
        0 8px 24px rgba(26, 51, 34, 0.05);
    backdrop-filter: blur(18px);
}

.customer-login-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.customer-login-heading-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--login-green);
    font-size: 1.2rem;
    background: var(--login-green-soft);
    border-radius: 15px;
}

.customer-login-heading h2 {
    margin: 0;
    color: var(--login-navy);
    font-size: 1.48rem;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.customer-login-heading p {
    margin: 5px 0 0;
    color: var(--login-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* =========================================================
   FORM FIELDS
   ========================================================= */

.customer-login-fields {
    display: grid;
    gap: 19px;
}

.customer-login-field {
    display: grid;
    gap: 8px;
}

.customer-login-field > span {
    color: var(--login-text);
    font-size: 0.82rem;
    font-weight: 750;
}

.customer-login-input {
    position: relative;
    display: flex;
    align-items: center;
}

.customer-login-input > i {
    position: absolute;
    left: 16px;
    z-index: 1;
    color: #859189;
    font-size: 1rem;
    pointer-events: none;
}

.customer-login-input input {
    width: 100%;
    height: 54px;
    padding: 0 50px 0 46px;
    color: var(--login-navy);
    font-size: 0.92rem;
    font-weight: 550;
    background: #fbfcfb;
    border: 1px solid var(--login-border);
    border-radius: 13px;
    outline: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.customer-login-input input::placeholder {
    color: #9aa49e;
    font-weight: 450;
}

.customer-login-input input:hover {
    border-color: #cfdad2;
}

.customer-login-input input:focus {
    background: #ffffff;
    border-color: rgba(22, 134, 63, 0.55);
    box-shadow: 0 0 0 4px rgba(22, 134, 63, 0.08);
}

.customer-password-toggle {
    position: absolute;
    right: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #7f8c84;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 9px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.customer-password-toggle:hover {
    color: var(--login-green);
    background: var(--login-green-soft);
}

/* =========================================================
   OPTIONS
   ========================================================= */

.customer-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 24px;
}

.customer-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--login-muted);
    font-size: 0.82rem;
    cursor: pointer;
}

.customer-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--login-green);
}

.customer-login-options a {
    color: var(--login-green);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}

.customer-login-options a:hover {
    color: var(--login-green-dark);
    text-decoration: underline;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.customer-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    gap: 10px;
    padding: 0 22px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            var(--login-green),
            var(--login-green-dark)
        );
    border: 0;
    border-radius: 13px;
    box-shadow: 0 13px 28px rgba(22, 134, 63, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.customer-login-submit:hover {
    box-shadow: 0 17px 34px rgba(22, 134, 63, 0.28);
    filter: brightness(1.03);
    transform: translateY(-2px);
}

.customer-login-submit i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.customer-login-submit:hover i {
    transform: translateX(3px);
}

.customer-login-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 25px 0 18px;
    color: #8a958e;
    font-size: 0.76rem;
    text-align: center;
}

.customer-login-divider::before,
.customer-login-divider::after {
    flex: 1;
    height: 1px;
    content: "";
    background: var(--login-border);
}

.customer-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    color: var(--login-green-dark);
    font-size: 0.88rem;
    font-weight: 780;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(22, 134, 63, 0.28);
    border-radius: 13px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.customer-register-link:hover {
    color: #ffffff;
    background: var(--login-green);
    border-color: var(--login-green);
    transform: translateY(-1px);
}

.customer-login-footer {
    margin: 17px auto 0;
    color: #849088;
    font-size: 0.74rem;
    line-height: 1.55;
    text-align: center;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.customer-login-page button:focus-visible,
.customer-login-page a:focus-visible,
.customer-login-page input:focus-visible {
    outline: 3px solid rgba(22, 134, 63, 0.24);
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
    .route-login .premium-header {
        display: none;
    }
}

@media (max-width: 960px) {
    .customer-login-page {
        padding: 54px 0;
    }

    .customer-login-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .customer-login-intro {
        max-width: 680px;
        margin-inline: auto;
        text-align: center;
    }

    .customer-login-brand {
        margin-bottom: 38px;
    }

    .customer-login-brand,
    .customer-login-trust {
        margin-inline: auto;
    }

    .customer-login-copy {
        margin-inline: auto;
    }

    .customer-login-copy p {
        margin-inline: auto;
    }

    .customer-login-kicker {
        justify-content: center;
    }

    .customer-login-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }

    .customer-login-benefit {
        display: flex;
        flex-direction: column;
        padding: 18px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid var(--login-border);
        border-radius: 16px;
    }

    .customer-login-form-column {
        max-width: 520px;
        margin-inline: auto;
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .customer-login-page {
        min-height: calc(100vh - 86px);
        padding: 22px 0 110px;
    }

    .customer-login-page .container {
        width: min(100% - 24px, 1180px);
    }

    .customer-login-layout {
        gap: 16px;
        align-items: start;
    }

    .customer-login-intro {
        max-width: none;
        display: flex;
        justify-content: center;
        margin: 0;
        text-align: center;
    }

    .customer-login-brand {
        margin: 0;
        padding: 9px 14px 9px 9px;
        border: 1px solid var(--login-border);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 14px 38px rgba(16, 32, 24, 0.08);
    }

    .customer-login-copy,
    .customer-login-benefits,
    .customer-login-trust {
        display: none;
    }

    .customer-login-form-column {
        width: 100%;
        max-width: 440px;
        margin-inline: auto;
    }

    .customer-login-card {
        padding: 22px 18px;
        border-radius: 20px;
        box-shadow: 0 18px 52px rgba(16, 32, 24, 0.12);
    }

    .customer-login-heading {
        align-items: center;
        margin-bottom: 22px;
    }

    .customer-login-heading h2 {
        font-size: 1.3rem;
    }

    .customer-login-footer {
        margin-top: 14px;
    }
}

@media (max-width: 420px) {
    .customer-login-page {
        padding-top: 18px;
    }

    .customer-login-brand {
        font-size: 0.98rem;
    }

    .customer-login-brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .customer-login-card {
        padding: 20px 15px;
    }

    .customer-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .customer-login-footer {
        max-width: 290px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-login-page *,
    .customer-login-page *::before,
    .customer-login-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
