:root {
    --orange: #F26A21;
    --orange-dark: #C94D0A;
    --orange-soft: #FFF1E8;
    --warm-white: #FFF9F5;
    --charcoal: #202124;
    --text: #34383B;
    --muted: #737A80;
    --border: #E8E7E5;
    --surface: #FFFFFF;
    --success: #2FA65A;
    --danger: #D64B4B;
    --warning: #D9901A;
    --info: #3478D4;
    --shadow-soft: 0 18px 55px rgba(42, 31, 23, .08);
    --shadow-toast: 0 18px 55px rgba(24, 29, 33, .16);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--charcoal);
    background: var(--surface);
    font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    overflow-x: hidden;
    background: #fff;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(30px, 5vw, 68px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 16%, rgba(255, 255, 255, .20), transparent 19%),
        radial-gradient(circle at 15% 82%, rgba(255, 255, 255, .11), transparent 24%),
        linear-gradient(145deg, #F57A32 0%, #EE611C 55%, #C84908 100%);
}

.auth-brand__logo {
    position: relative;
    z-index: 2;
    width: min(250px, 72%);
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(90, 37, 9, .12);
}

.auth-brand__logo img {
    width: 100%;
    height: auto;
}

.auth-brand__message {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: auto 0;
    padding: 70px 0;
}

.eyebrow {
    display: inline-block;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
}

.auth-brand .eyebrow {
    color: rgba(255, 255, 255, .76);
}

.auth-brand h1 {
    max-width: 560px;
    margin: 18px 0 16px;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.auth-brand p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(15px, 1.4vw, 18px);
}

.auth-brand__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.art-ring,
.art-dot {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.art-ring {
    border: 1px solid rgba(255, 255, 255, .18);
}

.art-ring--one {
    width: 420px;
    height: 420px;
    right: -230px;
    bottom: -110px;
}

.art-ring--two {
    width: 240px;
    height: 240px;
    right: -110px;
    bottom: -20px;
}

.art-dot {
    background: rgba(255, 255, 255, .58);
}

.art-dot--one {
    width: 7px;
    height: 7px;
    right: 18%;
    top: 28%;
}

.art-dot--two {
    width: 5px;
    height: 5px;
    left: 24%;
    bottom: 18%;
}

.auth-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 88px);
    background:
        radial-gradient(circle at 92% 8%, rgba(242, 106, 33, .08), transparent 22%),
        #fff;
}

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

.auth-card__heading {
    margin-bottom: 34px;
}

.auth-card__heading h2 {
    margin: 12px 0 7px;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.auth-card__heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

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

.form-field {
    display: grid;
    gap: 9px;
}

.form-field label,
.label-row {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-shell input {
    width: 100%;
    height: 54px;
    padding: 0 52px 0 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    color: var(--charcoal);
    background: #fff;
    font-size: 15px;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.input-shell input::placeholder {
    color: #A2A6AA;
}

.input-shell input:hover {
    border-color: #D8D4D0;
}

.input-shell input:focus {
    border-color: rgba(242, 106, 33, .72);
    box-shadow: 0 0 0 4px rgba(242, 106, 33, .10);
}

.input-icon {
    position: absolute;
    z-index: 1;
    left: 17px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: #8B9094;
    pointer-events: none;
}

.input-icon svg,
.password-toggle svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle {
    position: absolute;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    color: #8B9094;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--orange-dark);
    background: var(--orange-soft);
    outline: none;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.caps-warning {
    margin: 0;
    color: var(--warning);
    font-size: 12px;
}

.sign-in-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-top: 4px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 13px 30px rgba(242, 106, 33, .20);
    font-size: 15px;
    font-weight: 550;
    cursor: pointer;
    transition:
        transform .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.sign-in-button:hover {
    background: #E85E18;
    box-shadow: 0 15px 34px rgba(242, 106, 33, .25);
    transform: translateY(-1px);
}

.sign-in-button:active {
    transform: translateY(0);
}

.sign-in-button:focus-visible {
    outline: 3px solid rgba(242, 106, 33, .22);
    outline-offset: 3px;
}

.sign-in-button[disabled] {
    cursor: wait;
    opacity: .82;
    transform: none;
}

.button-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.sign-in-button.is-loading [data-button-label] {
    display: none;
}

.sign-in-button.is-loading .button-spinner {
    display: block;
}

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

.auth-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 12px;
}

.secure-mark {
    position: relative;
    width: 12px;
    height: 10px;
    border: 1.5px solid #7D858A;
    border-radius: 3px;
}

.secure-mark::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -7px;
    width: 5px;
    height: 6px;
    border: 1.5px solid #7D858A;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.auth-panel__legal {
    position: absolute;
    bottom: 26px;
    max-width: 440px;
    margin: 0;
    color: #9A9EA2;
    font-size: 11px;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Apple/macOS style toast notifications */
.toast-stack {
    position: fixed;
    z-index: 1000;
    top: 20px;
    right: 20px;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 12px;
    pointer-events: none;
}

.mac-toast {
    display: grid;
    grid-template-columns: 34px 1fr 28px;
    gap: 12px;
    align-items: start;
    padding: 14px 12px 14px 14px;
    border: 1px solid rgba(255, 255, 255, .80);
    border-radius: 17px;
    background: rgba(250, 250, 250, .88);
    box-shadow: var(--shadow-toast);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    pointer-events: auto;
    animation: toast-in .28s cubic-bezier(.22, .75, .25, 1);
}

.mac-toast.is-leaving {
    animation: toast-out .22s ease forwards;
}

.mac-toast__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--info);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.mac-toast__icon::after {
    content: "i";
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: Georgia, serif;
}

.mac-toast--success .mac-toast__icon {
    background: var(--success);
}

.mac-toast--success .mac-toast__icon::after {
    content: "✓";
    font-family: inherit;
    font-size: 17px;
}

.mac-toast--error .mac-toast__icon {
    background: var(--danger);
}

.mac-toast--error .mac-toast__icon::after {
    content: "!";
    font-family: inherit;
}

.mac-toast--warning .mac-toast__icon {
    background: var(--warning);
}

.mac-toast--warning .mac-toast__icon::after {
    content: "!";
    font-family: inherit;
}

.mac-toast__copy {
    min-width: 0;
    padding-top: 1px;
}

.mac-toast__copy strong {
    display: block;
    margin-bottom: 2px;
    color: #202326;
    font-size: 13px;
    font-weight: 600;
}

.mac-toast__copy p {
    margin: 0;
    color: #5F666B;
    font-size: 12px;
    line-height: 1.42;
}

.mac-toast__close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #7B8186;
    background: rgba(60, 64, 67, .08);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mac-toast__close:hover {
    color: #34383B;
    background: rgba(60, 64, 67, .14);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate3d(18px, -8px, 0) scale(.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translate3d(24px, -5px, 0) scale(.97);
    }
}

/* Starter dashboard */
.dashboard-page {
    background: #F8F8F7;
}

.admin-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 11px clamp(20px, 4vw, 62px);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.admin-topbar__brand img {
    width: 205px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.admin-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 14px;
    font-weight: 600;
}

.admin-identity span {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.admin-identity small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.quiet-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.quiet-button:hover {
    border-color: rgba(242, 106, 33, .35);
    color: var(--orange-dark);
}

.dashboard-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(46px, 6vw, 82px) 0;
}

.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.dashboard-welcome h1 {
    max-width: 780px;
    margin: 10px 0 9px;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.dashboard-welcome p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #DDEADF;
    border-radius: 999px;
    color: #39744D;
    background: #F3FAF5;
    font-size: 12px;
}

.status-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(47, 166, 90, .10);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 46px;
}

.stat-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 7px 24px rgba(37, 31, 26, .035);
}

.stat-card > span {
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    display: block;
    margin: 13px 0 5px;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -.04em;
}

.stat-card small {
    color: #969B9F;
    font-size: 11px;
}

.dashboard-next {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 18px;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .15), transparent 25%),
        linear-gradient(135deg, #F47830, #D9520E);
}

.dashboard-next .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.dashboard-next h2 {
    margin: 9px 0 7px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.dashboard-next p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.next-arrow {
    margin-left: auto;
    font-size: 42px;
    font-weight: 300;
}

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

    .auth-brand {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 72px 24px;
        background:
            radial-gradient(circle at 90% 0%, rgba(242, 106, 33, .12), transparent 26%),
            #fff;
    }

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

@media (max-width: 640px) {
    .auth-panel {
        place-items: start center;
        padding: 72px 20px 90px;
    }

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

    .auth-card__heading h2 {
        font-size: 37px;
    }

    .auth-panel__legal {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .toast-stack {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .admin-topbar {
        padding: 10px 16px;
    }

    .admin-topbar__brand img {
        width: 154px;
        height: 42px;
    }

    .admin-identity div {
        display: none;
    }

    .dashboard-shell {
        width: min(100% - 28px, 1240px);
        padding: 40px 0 70px;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-welcome h1 {
        font-size: 40px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 32px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card strong {
        font-size: 29px;
    }

    .dashboard-next {
        align-items: flex-start;
        padding: 26px;
    }

    .next-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
