/* =========================================================
   CUSTOMER AUTHENTICATION SYSTEM
   ========================================================= */

.customer-auth-page {
    --auth-green: #16863f;
    --auth-green-dark: #0e6b30;
    --auth-green-soft: #eaf7ef;
    --auth-green-pale: #f5faf6;
    --auth-navy: #102018;
    --auth-text: #26352d;
    --auth-muted: #6d7a72;
    --auth-border: #dfe8e2;
    --auth-surface: #ffffff;
    --auth-background: #f6f9f7;
    --auth-danger: #d14343;

    position: relative;
    min-height: calc(100vh - 88px);
    padding: 62px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 7% 17%,
            rgba(22, 134, 63, 0.09),
            transparent 27%
        ),
        radial-gradient(
            circle at 94% 84%,
            rgba(124, 190, 109, 0.11),
            transparent 29%
        ),
        var(--auth-background);
}

.customer-auth-page::before,
.customer-auth-page::after {
    position: absolute;
    pointer-events: none;
    content: "";
    border-radius: 50%;
}

.customer-auth-page::before {
    top: -180px;
    right: -160px;
    width: 470px;
    height: 470px;
    background: rgba(27, 146, 68, 0.045);
}

.customer-auth-page::after {
    bottom: -240px;
    left: -160px;
    width: 520px;
    height: 520px;
    background: rgba(118, 182, 102, 0.05);
}

.customer-auth-page .container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.customer-auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 0.82fr);
    align-items: center;
    gap: 72px;
}

/* =========================================================
   BRAND AND INTRODUCTION
   ========================================================= */

.customer-auth-intro {
    max-width: 600px;
}

.customer-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 52px;
    color: var(--auth-navy);
    font-size: 1.08rem;
    font-weight: 850;
    text-decoration: none;
}

.customer-auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    font-size: 1.15rem;
    background:
        linear-gradient(
            145deg,
            var(--auth-green),
            var(--auth-green-dark)
        );
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(22, 134, 63, 0.22);
}

.customer-auth-copy {
    max-width: 550px;
}

.customer-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--auth-green);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.customer-auth-kicker::before {
    width: 23px;
    height: 2px;
    content: "";
    background: var(--auth-green);
    border-radius: 999px;
}

.customer-auth-copy h1 {
    margin: 0;
    color: var(--auth-navy);
    font-size: clamp(2.15rem, 3.8vw, 3.4rem);
    font-weight: 870;
    line-height: 1.04;
    letter-spacing: -0.052em;
}

.customer-auth-copy p {
    max-width: 510px;
    margin: 18px 0 0;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* =========================================================
   BENEFIT LIST
   ========================================================= */

.customer-auth-benefits {
    display: grid;
    gap: 17px;
    margin-top: 38px;
}

.customer-auth-benefit {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
}

.customer-auth-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--auth-green);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(23, 48, 33, 0.05);
}

.customer-auth-benefit div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.customer-auth-benefit strong {
    color: var(--auth-navy);
    font-size: 0.93rem;
    font-weight: 800;
}

.customer-auth-benefit div span {
    color: var(--auth-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.customer-auth-trust {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 34px;
    padding: 10px 15px;
    color: var(--auth-green-dark);
    font-size: 0.8rem;
    font-weight: 680;
    background: rgba(234, 247, 239, 0.76);
    border: 1px solid rgba(22, 134, 63, 0.12);
    border-radius: 999px;
}

/* =========================================================
   FORM COLUMN
   ========================================================= */

.customer-auth-form-column {
    width: 100%;
    max-width: 490px;
    justify-self: end;
}

.customer-auth-card {
    padding: 34px;
    background: rgba(255, 255, 255, 0.97);
    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-auth-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 27px;
}

.customer-auth-heading-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--auth-green);
    font-size: 1.15rem;
    background: var(--auth-green-soft);
    border-radius: 15px;
}

.customer-auth-heading h2 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 1.42rem;
    font-weight: 830;
    letter-spacing: -0.025em;
}

.customer-auth-heading p {
    margin: 4px 0 0;
    color: var(--auth-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* =========================================================
   FIELDS
   ========================================================= */

.customer-auth-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 15px;
}

.customer-auth-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.customer-auth-field:nth-child(1),
.customer-auth-field:nth-child(2) {
    grid-column: 1 / -1;
}

.customer-auth-field > span {
    color: var(--auth-text);
    font-size: 0.8rem;
    font-weight: 760;
}

.customer-auth-field small {
    color: #89938d;
    font-size: 0.72rem;
    line-height: 1.45;
}

.customer-auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.customer-auth-input > i {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: #87938b;
    font-size: 0.98rem;
    pointer-events: none;
}

.customer-auth-input input {
    width: 100%;
    height: 52px;
    min-width: 0;
    padding: 0 49px 0 45px;
    color: var(--auth-navy);
    font-size: 0.9rem;
    font-weight: 540;
    background: #fbfcfb;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    outline: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.customer-auth-input input::placeholder {
    color: #9aa49e;
    font-weight: 440;
}

.customer-auth-input input:hover {
    border-color: #ccd8d0;
}

.customer-auth-input input:focus {
    background: #ffffff;
    border-color: rgba(22, 134, 63, 0.56);
    box-shadow: 0 0 0 4px rgba(22, 134, 63, 0.08);
}

.customer-auth-input input:invalid:not(:placeholder-shown) {
    border-color: rgba(209, 67, 67, 0.5);
}

/* =========================================================
   PHONE INPUT
   ========================================================= */

.customer-phone-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    height: 52px;
    overflow: hidden;
    background: #fbfcfb;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.customer-phone-input:focus-within {
    background: #ffffff;
    border-color: rgba(22, 134, 63, 0.56);
    box-shadow: 0 0 0 4px rgba(22, 134, 63, 0.08);
}

.customer-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: var(--auth-green-dark);
    font-size: 0.86rem;
    font-weight: 780;
    background: var(--auth-green-soft);
    border-right: 1px solid var(--auth-border);
}

.customer-phone-input input {
    height: 100%;
    padding: 0 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.customer-phone-input input:focus {
    box-shadow: none;
}

/* =========================================================
   PASSWORD BUTTON
   ========================================================= */

.customer-password-toggle {
    position: absolute;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    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(--auth-green);
    background: var(--auth-green-soft);
}

/* =========================================================
   CONSENT
   ========================================================= */

.customer-register-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 20px 0 22px;
    color: var(--auth-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    cursor: pointer;
}

.customer-register-consent input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--auth-green);
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.customer-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 53px;
    gap: 10px;
    padding: 0 22px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 820;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            var(--auth-green),
            var(--auth-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-auth-submit:hover {
    box-shadow: 0 17px 34px rgba(22, 134, 63, 0.28);
    filter: brightness(1.03);
    transform: translateY(-2px);
}

.customer-auth-submit i {
    transition: transform 0.2s ease;
}

.customer-auth-submit:hover i {
    transform: translateX(3px);
}

.customer-auth-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 23px 0 17px;
    color: #8a958e;
    font-size: 0.74rem;
    text-align: center;
}

.customer-auth-divider::before,
.customer-auth-divider::after {
    flex: 1;
    height: 1px;
    content: "";
    background: var(--auth-border);
}

.customer-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    color: var(--auth-green-dark);
    font-size: 0.86rem;
    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-auth-secondary:hover {
    color: #ffffff;
    background: var(--auth-green);
    border-color: var(--auth-green);
    transform: translateY(-1px);
}

.customer-auth-footer {
    margin: 16px auto 0;
    color: #849088;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.customer-auth-page button:focus-visible,
.customer-auth-page a:focus-visible,
.customer-auth-page input:focus-visible {
    outline: 3px solid rgba(22, 134, 63, 0.24);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */

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

@media (max-width: 980px) {
    .customer-auth-page {
        padding: 52px 0;
    }

    .customer-auth-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .customer-auth-intro {
        max-width: 720px;
        margin-inline: auto;
        text-align: center;
    }

    .customer-auth-brand {
        margin-bottom: 34px;
    }

    .customer-auth-brand,
    .customer-auth-trust {
        margin-inline: auto;
    }

    .customer-auth-copy {
        margin-inline: auto;
    }

    .customer-auth-copy p {
        margin-inline: auto;
    }

    .customer-auth-kicker {
        justify-content: center;
    }

    .customer-auth-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }

    .customer-auth-benefit {
        display: flex;
        flex-direction: column;
        padding: 17px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid var(--auth-border);
        border-radius: 16px;
    }

    .customer-auth-form-column {
        max-width: 540px;
        margin-inline: auto;
        justify-self: center;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .customer-auth-page {
        min-height: calc(100vh - 86px);
        padding: 22px 0 110px;
    }

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

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

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

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

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

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

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

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

    .customer-auth-heading h2 {
        font-size: 1.28rem;
    }

    .customer-auth-fields {
        grid-template-columns: 1fr;
    }

    .customer-auth-field,
    .customer-auth-field:nth-child(1),
    .customer-auth-field:nth-child(2) {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .customer-auth-page .container {
        width: min(100% - 20px, 1180px);
    }

    .customer-auth-page {
        padding-top: 18px;
    }

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

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

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

    .customer-auth-heading-icon {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-auth-page *,
    .customer-auth-page *::before,
    .customer-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
