/* =========================================================
   CUSTOMER AUTH PAGES (login, register, forgot / reset password)
   Loaded only on those pages.
   ========================================================= */

.auth-page {
    padding: 56px 0 72px;
    background: #fbf5e9;
    font-family: "Poppins", sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #efe5d8;
    border-radius: 24px;
    box-shadow: 0 30px 70px -30px rgba(42, 23, 18, 0.22);
}

/* ---------- Brand panel ---------- */

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 44px 0;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(120% 90% at 0% 0%, #c2127a 0%, #ac0060 45%, #7e0047 100%);
}

.auth-visual::before {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
}

.auth-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #f0c75e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.auth-visual-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.auth-visual h2 {
    position: relative;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: "DM Serif Display", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.12;
}

.auth-visual h2 em {
    color: #f0c75e;
    font-style: italic;
}

.auth-benefits {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
}

.auth-benefits i {
    display: grid;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #f0c75e;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.auth-visual-image {
    position: relative;
    display: flex;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    min-height: 260px;
    margin-top: 28px;
}

.auth-visual-image img {
    width: auto;
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

/* ---------- Form panel ---------- */

.auth-panel {
    padding: 56px 56px 48px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ac0060;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.auth-title {
    margin: 0 0 10px;
    color: #2a1712;
    font-family: "DM Serif Display", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 0 0 30px;
    color: #7a6f6b;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Alerts ---------- */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 12px;
}

.auth-alert i {
    margin-top: 3px;
}

.auth-alert-info {
    color: #8a004d;
    background: #fbe8f2;
}

.auth-alert-success {
    color: #1f6f43;
    background: #e5f4ea;
}

.auth-alert-error {
    color: #b42318;
    background: #fdecea;
}

/* ---------- Fields ---------- */

.auth-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #2a1712;
    font-size: 13px;
    font-weight: 500;
}

.auth-label-row a {
    color: #ac0060;
    font-size: 12.5px;
    font-weight: 500;
}

.auth-label-row a:hover {
    color: #7e0047;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    background: #fdfbf8;
    border: 1.5px solid #e9e0d4;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:hover {
    border-color: #d9ccbd;
}

.auth-input > i {
    display: grid;
    flex-shrink: 0;
    width: 46px;
    place-items: center;
    color: #a89c96;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 0;
    color: #2a1712;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    background: transparent;
    border: 0;
    outline: none;
}

.auth-input input::placeholder {
    color: #b3a8a2;
}

.auth-input:focus-within {
    background: #ffffff;
    border-color: #ac0060;
    box-shadow: 0 0 0 4px rgba(172, 0, 96, 0.1);
}

.auth-input:focus-within > i {
    color: #ac0060;
}

.auth-input.is-invalid {
    background: #fffafa;
    border-color: #d92d20;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.auth-input.is-invalid > i {
    color: #d92d20;
}

.auth-toggle {
    display: grid;
    flex-shrink: 0;
    width: 46px;
    height: 100%;
    place-items: center;
    padding: 0;
    color: #a89c96;
    background: none;
    border: 0;
    cursor: pointer;
}

.auth-toggle:hover,
.auth-toggle:focus-visible {
    color: #ac0060;
    outline: none;
}

.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: #d92d20;
    font-size: 12.5px;
    line-height: 1.5;
}

.auth-error i {
    margin-top: 3px;
    font-size: 11px;
}

.auth-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #8a7f7b;
    font-size: 12px;
    transition: color 0.2s ease;
}

.auth-hint.is-met {
    color: #1f8a4c;
}

/* The error already says what's wrong, so hide the hint underneath it. */
.auth-error:not([hidden]) + .auth-hint {
    display: none;
}

/* ---------- Remember me ---------- */

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5c514d;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    margin: 0;
    place-items: center;
    background: #ffffff;
    border: 1.5px solid #d6cabd;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    transition: 0.2s ease;
}

.auth-check input::after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.auth-check input:checked {
    background: #ac0060;
    border-color: #ac0060;
}

.auth-check input:checked::after {
    transform: rotate(45deg) scale(1);
}

.auth-check input:focus-visible {
    box-shadow: 0 0 0 4px rgba(172, 0, 96, 0.15);
    outline: none;
}

/* ---------- Submit ---------- */

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    color: #ffffff;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.6px;
    background: #ac0060;
    border: 0;
    border-radius: 50px;
    box-shadow: 0 12px 24px -12px rgba(172, 0, 96, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    background: #8f0050;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -12px rgba(172, 0, 96, 0.65);
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(172, 0, 96, 0.25);
}

.auth-submit i {
    transition: transform 0.2s ease;
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-submit[disabled] {
    cursor: wait;
    opacity: 0.8;
    transform: none;
}

.auth-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Footer links ---------- */

.auth-switch {
    margin: 26px 0 0;
    color: #7a6f6b;
    font-size: 13.5px;
    text-align: center;
}

.auth-switch a {
    margin-left: 4px;
    color: #ac0060;
    font-weight: 600;
}

.auth-switch a:hover {
    color: #7e0047;
}

.auth-legal {
    margin: 16px 0 0;
    color: #8a7f7b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.auth-legal a {
    color: #2a1712;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: #8a7f7b;
    font-size: 12px;
}

.auth-secure i {
    color: #cd9c2a;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 575px) {
    .auth-page {
        padding: 24px 0 96px;
    }

    .auth-shell {
        border-radius: 18px;
    }

    .auth-panel {
        padding: 32px 22px 30px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
