/* =========================================
   CUSTOMER LOGIN & REGISTER PAGES (loaded on those pages only)
   New classes are prefixed auth-; nothing here
   changes other pages.
========================================= */

.auth-page {
    padding: 140px 0 90px;
    background:
        radial-gradient(circle at 12% 20%, rgba(219, 92, 7, .07), transparent 40%),
        linear-gradient(180deg, #fbf7f4 0, #ffffff 520px);
}

.auth-card {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 25px 60px rgba(17, 17, 17, .08);
}


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

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 44px;
    color: #ffffff;
    background:
        linear-gradient(160deg, rgba(17, 17, 17, .78), rgba(17, 17, 17, .94)),
        url("../image/banner.jpg") center / cover no-repeat;
    overflow: hidden;
}

.auth-aside::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border: 36px solid rgba(219, 92, 7, .22);
    border-radius: 50%;
}

.auth-aside-inner,
.auth-aside-foot {
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    background: #db5c07;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.auth-aside h2 {
    margin: 0 0 14px;
    font-family: "Libre Baskerville", serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
}

.auth-aside h2 strong {
    color: #db5c07;
    font-weight: 700;
}

.auth-aside p {
    max-width: 330px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.7;
}

.auth-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
}

.auth-benefits li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.auth-benefits i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(219, 92, 7, .18);
    color: #ff8a3d;
    font-size: 13px;
}

.auth-aside-foot {
    margin-top: 40px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.auth-aside-foot i {
    margin-right: 6px;
    color: #db5c07;
}


/* ---------- Form side ---------- */

.auth-main {
    padding: 50px 48px;
}

.auth-header > span {
    display: block;
    margin-bottom: 10px;
    color: #db5c07;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.auth-header h1 {
    margin: 0 0 8px;
    color: #111111;
    font-family: "Libre Baskerville", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.3;
}

.auth-header h1 strong {
    color: #db5c07;
    font-weight: 700;
}

.auth-header p {
    margin: 0 0 28px;
    color: #888888;
    font-size: 13px;
}

.auth-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 24px;
    padding: 12px 14px;
    border-left: 3px solid #db5c07;
    background: #fff5ee;
    color: #9a4105;
    font-size: 13px;
}

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

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

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

.auth-label-row a {
    color: #db5c07;
    font-size: 12px;
}

.auth-label-row a:hover {
    text-decoration: underline !important;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-input:focus-within {
    border-color: #db5c07;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(219, 92, 7, .1);
}

.auth-input > i {
    width: 48px;
    flex: 0 0 48px;
    text-align: center;
    color: #aaaaaa;
    font-size: 14px;
    transition: color .2s ease;
}

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

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111111;
    font-size: 14px;
}

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

.auth-toggle {
    width: 48px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #999999;
    cursor: pointer;
    transition: color .2s ease;
}

.auth-toggle:hover {
    color: #db5c07;
}

.auth-field.has-error .auth-input {
    border-color: #d93025;
    background: #fff8f7;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #d93025;
    font-size: 12px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 26px;
    color: #555555;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-check {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    color: transparent;
    font-size: 10px;
    transition: all .2s ease;
}

.auth-remember input:checked + .auth-check {
    border-color: #db5c07;
    background: #db5c07;
    color: #ffffff;
}

.auth-remember input:focus-visible + .auth-check {
    box-shadow: 0 0 0 3px rgba(219, 92, 7, .25);
}

.auth-submit {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: #db5c07;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

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

.auth-submit:hover {
    background: #b94c04;
    box-shadow: 0 10px 24px rgba(219, 92, 7, .25);
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    color: #999999;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ececec;
}

.auth-secondary {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #111111;
    color: #111111;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}

.auth-secondary:hover {
    background: #111111;
    color: #ffffff;
}


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

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

    .auth-aside {
        padding: 30px 28px;
    }

    .auth-aside h2 {
        font-size: 28px;
    }

    .auth-aside p {
        margin-bottom: 0;
    }

    .auth-benefits,
    .auth-aside-foot {
        display: none;
    }
}

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

    .auth-main {
        padding: 32px 22px;
    }

    .auth-header h1 {
        font-size: 23px;
    }
}


/* =========================================
   REGISTER PAGE (auth.css is also loaded there)
========================================= */

.register-page .auth-card {
    max-width: 1120px;
    grid-template-columns: .9fr 1.25fr;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    margin-bottom: 8px;
}

.auth-submit:disabled {
    opacity: .8;
    cursor: progress;
}

/* Password strength meter */
.password-meter {
    margin-top: 9px;
}

.password-meter-bar {
    height: 4px;
    background: #eeeeee;
    overflow: hidden;
}

.password-meter-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #d93025;
    transition: width .3s ease, background .3s ease;
}

.password-meter-text {
    display: block;
    margin-top: 6px;
    color: #888888;
    font-size: 11px;
}

.password-meter[data-level="0"] .password-meter-bar span { width: 12%; background: #d93025; }
.password-meter[data-level="1"] .password-meter-bar span { width: 30%; background: #e8710a; }
.password-meter[data-level="2"] .password-meter-bar span { width: 55%; background: #f2b705; }
.password-meter[data-level="3"] .password-meter-bar span { width: 80%; background: #4caf50; }
.password-meter[data-level="4"] .password-meter-bar span { width: 100%; background: #2e8b57; }

.password-meter[data-level="0"] .password-meter-text,
.password-meter[data-level="1"] .password-meter-text { color: #c5561a; }
.password-meter[data-level="4"] .password-meter-text { color: #2e8b57; }

@media (max-width: 991px) {
    .register-page .auth-card {
        grid-template-columns: 1fr;
        max-width: 620px;
    }
}

@media (max-width: 575px) {
    .register-grid {
        grid-template-columns: 1fr;
    }
}
