:root {
    --auth-bg: #f8fafc;
    --auth-card: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-soft: #e2e8f0;
    --auth-indigo: #4f46e5;
    --auth-indigo-dark: #4338ca;
    --auth-indigo-soft: #e0e7ff;
    --auth-teal-soft: #ccfbf1;
    --auth-emerald: #10b981;
    --auth-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--auth-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
}

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

button,
input {
    font: inherit;
}

.auth-body {
    background: var(--auth-bg);
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 20%, rgba(204, 251, 241, 0.8), transparent 26rem),
        radial-gradient(circle at 86% 80%, rgba(224, 231, 255, 0.9), transparent 28rem),
        linear-gradient(90deg, #f8fafc 0%, #f8fafc 62%, rgba(238, 242, 255, 0.92) 62%, rgba(238, 242, 255, 0.92) 100%);
}

.auth-shell::after {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: min(42vw, 680px);
    height: 58vh;
    content: "";
    background: rgba(224, 231, 255, 0.62);
    border-bottom-left-radius: 96px;
}

.auth-shell-compact {
    display: flex;
    flex-direction: column;
}

.auth-header,
.auth-grid {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    color: #ffffff;
    font-weight: 600;
    background: var(--auth-indigo);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.26);
    place-items: center;
}

.brand-name {
    color: var(--auth-text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-name span {
    color: var(--auth-indigo);
}

.auth-nav {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.auth-nav a {
    transition: color 0.2s ease;
}

.auth-nav a:hover,
.auth-nav a[aria-current="true"] {
    color: var(--auth-indigo);
}

.auth-nav span {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
    min-height: calc(100vh - 104px);
    padding: 42px 0 70px;
}

.auth-single {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(520px, calc(100% - 40px));
    min-height: calc(100vh - 104px);
    padding: 34px 0 70px;
    margin: 0 auto;
    align-items: center;
}

.auth-copy {
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 24px;
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
    background: var(--auth-indigo-soft);
    border-radius: 999px;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    background: var(--auth-indigo);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.13);
}

.auth-copy h1 {
    max-width: 660px;
    margin: 0 0 22px;
    color: var(--auth-text);
    font-size: clamp(40px, 6vw, 66px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.auth-copy h1 span {
    color: var(--auth-indigo);
}

.lead {
    max-width: 600px;
    margin: 0 0 34px;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.benefit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-bottom: 34px;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
}

.benefit-row div,
.remember {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.checkmark {
    position: relative;
    width: 17px;
    height: 17px;
    background: var(--auth-emerald);
    border-radius: 999px;
}

.checkmark::after {
    position: absolute;
    top: 4px;
    left: 5px;
    width: 5px;
    height: 8px;
    content: "";
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(42deg);
}

.work-preview,
.login-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(203, 213, 225, 0.82);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(16px);
}

.work-preview {
    max-width: 560px;
    padding: 26px;
    border-radius: 24px;
}

.preview-title {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preview-item {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.preview-item + .preview-item {
    margin-top: 12px;
}

.preview-item span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.preview-item strong {
    display: block;
    color: var(--auth-text);
    font-size: 15px;
    line-height: 1.45;
}

.preview-item.success {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.preview-item.success span {
    color: #047857;
}

.preview-item.success strong {
    color: #064e3b;
}

.login-panel {
    width: 100%;
    padding: 34px;
    border-radius: 24px;
}

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

.panel-heading p {
    margin: 0 0 8px;
    color: var(--auth-indigo);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.login-form {
    display: grid;
    gap: 13px;
}

.login-form label {
    color: #334155;
    font-size: 14px;
    font-weight: 750;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form select {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    color: var(--auth-text);
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 14px) 22px;
    background-repeat: no-repeat;
    background-size: 6px 6px;
}

.login-form input::placeholder {
    color: #94a3b8;
}

.login-form input:focus,
.login-form select:focus {
    background: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-two div {
    display: grid;
    gap: 13px;
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 8px;
    color: #64748b;
    font-size: 14px;
}

.remember {
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-indigo);
}

.form-row a {
    color: var(--auth-indigo);
    font-weight: 750;
}

.login-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    background: var(--auth-indigo);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
    background: var(--auth-indigo-dark);
    box-shadow: 0 18px 38px rgba(79, 70, 229, 0.32);
    transform: translateY(-1px);
}

.panel-note {
    padding-top: 20px;
    margin: 22px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

.panel-note a,
.inline-form button {
    color: var(--auth-indigo);
    font-weight: 600;
}

.auth-alert {
    padding: 12px 14px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
}

.auth-alert-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.auth-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.auth-alert-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.auth-alert-info {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.inline-form {
    margin-top: 16px;
    text-align: center;
}

.inline-form button {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
}

@media (max-width: 920px) {
    .auth-shell {
        background:
            radial-gradient(circle at 10% 10%, rgba(204, 251, 241, 0.8), transparent 22rem),
            linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    }

    .auth-shell::after {
        display: none;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 22px;
    }

    .auth-copy {
        max-width: none;
    }

    .work-preview {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .auth-header,
    .auth-grid {
        width: min(100% - 28px, 1180px);
    }

    .auth-header {
        padding: 20px 0;
    }

    .brand-name {
        font-size: 18px;
    }

    .auth-nav {
        display: none;
    }

    .auth-copy h1 {
        font-size: 38px;
    }

    .lead {
        font-size: 16px;
    }

    .login-panel,
    .work-preview {
        padding: 22px;
        border-radius: 18px;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .form-two {
        grid-template-columns: 1fr;
    }
}
