
:root {
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --text-soft: #475569;
    --line: #dbeafe;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 20% -20%, #dbeafe 0, transparent 42%),
        radial-gradient(circle at 100% 10%, #eff6ff 0, transparent 36%),
        var(--slate-50);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #94a3b8;
    outline-offset: 3px;
}

button,
a {
    touch-action: manipulation;
}

.wrap {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -5rem;
    background: var(--brand-600);
    color: #fff;
    padding: 0.65rem 0.9rem;
    z-index: 20;
    border-radius: 0.45rem;
}

.skip:focus {
    top: 1rem;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.105em;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand small {
    display: block;
    font-size: 0.54rem;
    letter-spacing: 0.17em;
    color: var(--text-soft);
    margin-top: 0.45rem;
}

.brand-icon {
    width: 2.3rem;
    height: 2.35rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--brand-600) 0%, #1e40af 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
}

.text-link:hover {
    color: var(--brand-600);
}

.account-body,
.workspace-body {
    background: var(--slate-50);
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
    min-height: calc(100vh - 4.5rem);
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.account-story h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5.4vw, 4.5rem);
    letter-spacing: -0.03em;
    font-weight: 600;
    line-height: 1.05;
}

.account-story h1 em {
    color: var(--brand-600);
    font-style: normal;
}

.eyebrow {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 1.3rem;
    height: 1px;
    background: var(--slate-300);
}

.account-story > p:not(.eyebrow) {
    margin: 1rem 0 0;
    max-width: 30rem;
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.sign-in-card {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    box-shadow: 0 16px 35px -18px rgba(15, 23, 42, 0.25);
}

.sign-in-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.sign-in-card p {
    margin: 0.75rem 0 0;
    line-height: 1.65;
    color: var(--text-soft);
}

.sign-in-card label {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 1.2rem 0 0.45rem;
}

.sign-in-card input {
    width: 100%;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.55rem;
    background: #fff;
    color: var(--slate-900);
    font: inherit;
}

.sign-in-card input:hover {
    border-color: #93c5fd;
}

.button,
.quiet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: auto;
    border: 0;
    border-radius: 0.55rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.8rem 1.05rem;
}

.button.primary,
button.primary {
    width: 100%;
    background: var(--brand-600);
    color: #fff;
    margin-top: 1.45rem;
}

.button.primary:hover,
button.primary:hover {
    background: var(--brand-700);
}

.text-link,
.button.primary,
.quiet-button {
    transition: all 0.2s ease;
}

.form-error {
    margin: 1rem 0 0;
    background: #fff1f2;
    color: #be123c;
    border-radius: 0.55rem;
    padding: 0.9rem 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.account-note,
.preview-note {
    border-top: 1px solid var(--slate-200);
    margin-top: 1.7rem;
    padding-top: 1.2rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 30rem;
}

.form-help {
    color: var(--text-soft);
    margin-top: 1.35rem;
    font-size: 0.89rem;
}

.native-admin-banner {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #f8fafc;
    padding: 0.75rem 1.35rem;
    font-size: 0.86rem;
    font-weight: 500;
}

.native-admin-banner a {
    color: #fef3c7;
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .account-body .account-story {
        order: 1;
        max-width: 640px;
    }

    .account-body .sign-in-card {
        order: 2;
    }
}

@media (max-width: 900px) {
    .wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .header {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .brand {
        font-size: 0.68rem;
        gap: 0.65rem;
        letter-spacing: 0.1em;
    }

    .brand-icon {
        width: 2rem;
        height: 2rem;
    }

    .text-link {
        font-size: 0.78rem;
    }

    .account-layout {
        padding-top: 0.5rem;
        min-height: 0;
    }

    .account-story h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .sign-in-card {
        padding: 1.25rem;
        border-radius: 0.95rem;
    }

    .sign-in-card label {
        margin-top: 1rem;
    }

    .sign-in-card input {
        padding: 0.75rem;
        border-radius: 0.5rem;
    }

    .button.primary,
    button.primary {
        width: 100%;
        padding: 0.76rem 1rem;
    }

    .native-admin-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.7rem 1rem;
    }
}
