* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.auth-body {
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(76, 201, 240, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(67, 97, 238, 0.16), transparent 26%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #f7f9fc 100%);
    color: #111827;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-panel--visual {
    position: relative;
    overflow: hidden;
}

.auth-panel--visual::before {
    content: "";
    position: absolute;
    inset: 48px;
    border-radius: 32px;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.52)),
        linear-gradient(135deg, #dbeafe, #eff6ff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(255,255,255,0.7);
}

.auth-panel--visual-dark::before {
    background:
        linear-gradient(155deg, rgba(15,23,42,0.96), rgba(30,41,59,0.90)),
        linear-gradient(135deg, #111827, #1e293b);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.auth-visual__content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.auth-panel--visual-dark .auth-kicker {
    background: rgba(255,255,255,0.08);
    color: #c7d2fe;
}

.auth-visual__content h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.auth-panel--visual-dark .auth-visual__content h1 {
    color: #f8fafc;
}

.auth-visual__content p {
    margin: 0;
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

.auth-panel--visual-dark .auth-visual__content p {
    color: #cbd5e1;
}

.auth-panel--form {
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 36px;
    border-radius: 28px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(16px);
}

.auth-card__header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.auth-card__header p {
    margin: 0 0 24px;
    color: #64748b;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.auth-input {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dbe3f0;
    background: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: 0.2s ease;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.auth-button {
    min-height: 58px;
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(37, 99, 235, 0.35);
}

.auth-button--dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.28);
}

.auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-dev-code {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #334155;
    font-size: 0.94rem;
}

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

    .auth-panel--visual {
        min-height: 320px;
    }

    .auth-panel--visual::before {
        inset: 28px;
    }
}

@media (max-width: 640px) {
    .auth-panel {
        padding: 20px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 22px;
    }

    .auth-card__header h2 {
        font-size: 1.65rem;
    }

    .auth-visual__content h1 {
        font-size: 2.2rem;
    }
}