:root {
    --ahido-ink: #171714;
    --ahido-brown: #6f4b35;
    --ahido-copper: #a65a18;
    --ahido-gold: #e6a738;
    --ahido-cream: #f7f3eb;
    --ahido-sand: #e8dfd1;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ahido-ink);
    background: var(--ahido-cream);
    text-rendering: optimizeLegibility;
}

::selection {
    color: white;
    background: var(--ahido-copper);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr);
    font-family: Inter, sans-serif;
    background: #fbfaf7;
}

.auth-brand {
    position: fixed;
    z-index: 20;
    top: 30px;
    left: 38px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ahido-ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.04em;
    text-decoration: none;
}

.auth-brand small {
    display: block;
    margin-top: -3px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .6;
}

.auth-brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--ahido-copper), var(--ahido-gold));
    box-shadow: 0 12px 30px rgba(166, 90, 24, .24);
}

.auth-client-story,
.seller-auth-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px clamp(38px, 7vw, 110px) 70px;
}

.auth-client-story {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .15), transparent 55%),
        #eee5d7;
}

.auth-story-content {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--ahido-copper);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

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

.auth-story-content h1 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(50px, 6.2vw, 88px);
    font-weight: 850;
    line-height: .96;
    letter-spacing: -.065em;
}

.auth-story-content > p {
    max-width: 570px;
    margin: 30px 0 0;
    color: rgba(52, 37, 27, .72);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.65;
}

.auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 46px;
}

.auth-proof-grid article {
    padding: 22px;
    border: 1px solid rgba(111, 75, 53, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .54);
    backdrop-filter: blur(12px);
}

.auth-proof-grid strong,
.auth-proof-grid span {
    display: block;
}

.auth-proof-grid strong {
    margin-bottom: 7px;
    font-size: 14px;
}

.auth-proof-grid span {
    color: rgba(52, 37, 27, .62);
    font-size: 12px;
    line-height: 1.5;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.auth-orb-one {
    top: -110px;
    right: -80px;
    width: 370px;
    height: 370px;
    background: rgba(224, 157, 48, .18);
}

.auth-orb-two {
    bottom: -180px;
    left: -90px;
    width: 440px;
    height: 440px;
    border: 90px solid rgba(166, 90, 24, .07);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px clamp(28px, 5vw, 72px);
    background: #fbfaf7;
}

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

.auth-card h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-intro {
    margin: 16px 0 32px;
    color: rgba(52, 37, 27, .66);
    font-size: 15px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label > span {
    display: block;
    margin: 0 0 9px 5px;
    color: var(--ahido-brown);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-form input {
    box-sizing: border-box;
    width: 100%;
    height: 62px;
    padding: 0 22px;
    border: 1px solid rgba(111, 75, 53, .12);
    border-radius: 22px;
    outline: none;
    color: var(--ahido-ink);
    background: #fff;
    font: 600 16px Inter, sans-serif;
    box-shadow: 0 12px 38px rgba(42, 29, 20, .045);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.auth-form input:focus {
    border-color: var(--ahido-copper);
    box-shadow: 0 0 0 4px rgba(166, 90, 24, .1), 0 18px 44px rgba(42, 29, 20, .07);
    transform: translateY(-1px);
}

.auth-form .otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .38em;
}

.auth-primary-button {
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(110deg, #9b4d0f, #e2a034);
    box-shadow: 0 17px 38px rgba(166, 90, 24, .24);
    cursor: pointer;
    font: 800 15px Inter, sans-serif;
    transition: transform .2s, box-shadow .2s;
}

.auth-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(166, 90, 24, .31);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
    color: rgba(52, 37, 27, .45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(111, 75, 53, .14);
}

.auth-social-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-social-actions:has(> :only-child) {
    grid-template-columns: 1fr;
}

.auth-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid rgba(111, 75, 53, .16);
    border-radius: 999px;
    background: #fff;
    color: #1a1c1c;
    cursor: pointer;
    font: 800 13px Inter, sans-serif;
    transition: transform .15s, border-color .15s, background .15s;
}

.auth-social-button:hover {
    transform: translateY(-1px);
    border-color: rgba(111, 75, 53, .32);
    background: #fbf8f4;
}

.auth-social-status {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(52, 37, 27, .62);
    text-align: center;
}

.auth-social-status.is-error {
    color: #9b2929;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.auth-alert-success {
    color: #17613a;
    border: 1px solid #b7e4ca;
    background: #effaf3;
}

.auth-alert-error {
    color: #9b2929;
    border: 1px solid #f0bebe;
    background: #fff1f1;
}

.auth-secondary-link {
    display: block;
    margin-top: 18px;
    color: var(--ahido-copper);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.auth-switch {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 38px;
    padding: 18px 0;
    border-top: 1px solid rgba(111, 75, 53, .12);
    border-bottom: 1px solid rgba(111, 75, 53, .12);
    color: rgba(52, 37, 27, .62);
    font-size: 13px;
}

.auth-switch a {
    color: var(--ahido-ink);
    font-weight: 900;
    text-decoration: none;
}

.auth-legal {
    margin: 24px auto 0;
    color: rgba(52, 37, 27, .48);
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-legal a {
    color: inherit;
    font-weight: 900;
}

.auth-mobile-logo {
    display: none;
}

.seller-auth-hero {
    color: #fff;
    background:
        radial-gradient(circle at 80% 14%, rgba(230, 167, 56, .24), transparent 30%),
        linear-gradient(145deg, #171714, #29231d 65%, #3a291b);
}

.auth-brand-light {
    color: #fff;
}

.eyebrow-light {
    color: #f2bd5c;
}

.seller-auth-hero .auth-story-content > p {
    color: rgba(255, 255, 255, .65);
}

.seller-grid-decoration {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image:
        linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.seller-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.seller-feature-row span {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.055);
    font-size: 12px;
    font-weight: 800;
}

.seller-metric-card {
    display: flex;
    max-width: 520px;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 46px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(12px);
}

.seller-metric-card span,
.seller-metric-card strong {
    display: block;
}

.seller-metric-card span {
    margin-bottom: 6px;
    color: rgba(255,255,255,.45);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.seller-metric-card strong {
    font-size: 15px;
}

.metric-bars {
    display: flex;
    height: 44px;
    align-items: end;
    gap: 5px;
}

.metric-bars i {
    width: 8px;
    border-radius: 5px;
    background: linear-gradient(#f2bd5c, #a65a18);
}

.metric-bars i:nth-child(1) { height: 30%; }
.metric-bars i:nth-child(2) { height: 48%; }
.metric-bars i:nth-child(3) { height: 42%; }
.metric-bars i:nth-child(4) { height: 72%; }
.metric-bars i:nth-child(5) { height: 100%; }

.auth-business-button {
    background: linear-gradient(110deg, #171714, #4a3829);
    box-shadow: 0 17px 38px rgba(23, 23, 20, .2);
}

.auth-security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 15px;
    border-radius: 18px;
    color: #35583d;
    background: #f0f7ef;
}

.auth-security-note > span {
    display: grid;
    flex: 0 0 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #4e805a;
    font-weight: 900;
}

.auth-security-note p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
}

/* Common visual polish */
.ahido-navbar {
    border-bottom: 1px solid rgba(111, 75, 53, .08);
    box-shadow: 0 10px 35px rgba(42, 29, 20, .055);
}

.seller-sidebar {
    background:
        linear-gradient(180deg, rgba(255,255,255,.78), rgba(245,239,230,.94)),
        #f3eee6;
    box-shadow: 12px 0 40px rgba(42, 29, 20, .055);
}

.seller-sidebar a {
    border-radius: 14px;
}

.seller-mobile-toggle {
    display: none;
}

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

    .auth-client-story,
    .seller-auth-hero {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 38px 22px;
        background:
            radial-gradient(circle at 90% 0, rgba(230, 167, 56, .17), transparent 30%),
            #f7f3eb;
    }

    .seller-auth-panel {
        background:
            radial-gradient(circle at 80% 0, rgba(166, 90, 24, .17), transparent 30%),
            #f7f3eb;
    }

    .auth-brand {
        display: none;
    }

    .auth-mobile-logo {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 52px;
        font-size: 19px;
    }

    .auth-mobile-logo .auth-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .seller-sidebar {
        width: min(84vw, 300px) !important;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    body.seller-menu-open .seller-sidebar {
        transform: translateX(0);
    }

    .seller-sidebar + .ml-64,
    .seller-sidebar ~ .ml-64 {
        margin-left: 0 !important;
        width: 100%;
    }

    .seller-mobile-toggle {
        position: fixed;
        z-index: 60;
        right: 18px;
        bottom: 18px;
        display: grid;
        width: 54px;
        height: 54px;
        place-items: center;
        border: 0;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, var(--ahido-copper), var(--ahido-gold));
        box-shadow: 0 16px 36px rgba(166, 90, 24, .3);
    }
}

@media (max-width: 620px) {
    .auth-card h2 {
        font-size: 34px;
    }

    .auth-switch {
        flex-direction: column;
        gap: 7px;
    }

    .auth-form input,
    .auth-primary-button {
        height: 58px;
    }
}
