@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap');

:root {
    --shopee-orange: #ee4d2d;
    --shopee-orange-dark: #d83b1f;
    --ink: #222;
    --muted: #8b8b8b;
    --line: #e5e5e5;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: 'Nunito Sans', 'Source Sans Pro', Arial, sans-serif;
    background: #fff7f3;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-promo {
    position: relative;
    display: flex;
    flex: 1 1 48%;
    flex-direction: column;
    overflow: hidden;
    padding: 46px 9%;
    color: #fff;
    background: linear-gradient(145deg, #ff7658 0%, var(--shopee-orange) 55%, #dc351c 100%);
}

.auth-brand {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.25;
}

.auth-brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth-brand > span:last-child {
    overflow-wrap: anywhere;
}

.auth-brand-mark,
.mobile-brand-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    font-size: 20px;
}

.promo-content {
    z-index: 2;
    max-width: 480px;
    margin: auto 0;
}

.promo-kicker,
.auth-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #fff4ee;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.promo-content h1 {
    margin: 0 0 20px;
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -1.5px;
}

.promo-content h1 strong {
    font-weight: 900;
}

.promo-content p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .87);
    font-size: 16px;
    line-height: 1.7;
}

.promo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 32px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.promo-features i {
    margin-right: 5px;
    color: #ffd8c9;
}

.promo-decoration {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.promo-decoration-one {
    right: -150px;
    bottom: -170px;
    width: 470px;
    height: 470px;
}

.promo-decoration-two {
    right: 90px;
    bottom: -105px;
    width: 260px;
    height: 260px;
}

.auth-card-wrap {
    display: flex;
    flex: 1 1 52%;
    align-items: center;
    justify-content: center;
    padding: 50px 7%;
    background: #fff;
}

.auth-card {
    width: min(100%, 410px);
}

.register-card {
    width: min(100%, 590px);
}

.auth-heading {
    margin-bottom: 28px;
}

.mobile-brand-mark {
    display: none;
    margin-bottom: 20px;
    color: var(--shopee-orange);
    border-color: #ffc9bd;
}

.auth-eyebrow {
    margin-bottom: 7px;
    color: var(--shopee-orange);
    font-size: 12px;
}

.auth-heading h2 {
    margin: 0 0 8px;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-form {
    margin-top: 4px;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 18px;
}

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

.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 16px;
    color: #b7b7b7;
    text-align: center;
}

.input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 43px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: 0;
    color: var(--ink);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrap input:focus {
    border-color: var(--shopee-orange);
    box-shadow: 0 0 0 3px rgba(238, 77, 45, .11);
}

.auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--shopee-orange);
    box-shadow: 0 5px 12px rgba(238, 77, 45, .2);
    font-size: 14px;
    font-weight: 800;
    transition: background .2s, transform .2s;
}

.auth-submit i {
    margin-left: 8px;
}

.auth-submit:hover {
    background: var(--shopee-orange-dark);
    transform: translateY(-1px);
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: var(--shopee-orange);
    font-weight: 800;
}

.auth-footer {
    margin: 42px 0 0;
    color: #b2b2b2;
    font-size: 11px;
    text-align: center;
}

.auth-card .alert {
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 13px;
}

@media (max-width: 800px) {
    .auth-promo {
        display: none;
    }

    .auth-card-wrap {
        min-height: 100vh;
        padding: 36px 22px;
        background: #fff7f3;
    }

    .auth-card {
        padding: 30px 24px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 28px rgba(103, 39, 25, .08);
    }

    .mobile-brand-mark {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    .register-grid {
        display: block;
    }

    .auth-heading h2 {
        font-size: 26px;
    }

    .auth-footer {
        margin-top: 30px;
    }
}
