@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b1224;
    --card: rgba(15, 20, 38, 0.85);
    --panel: #0f172a;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e7ecf5;
    --muted: #8b95b7;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --spacing: 20px;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.15), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.2), transparent 35%),
    linear-gradient(135deg, #0b1224 0%, #0c1428 40%, #0b1021 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.auth-wrapper {
    min-height: 100vh;
    padding: 24px 18px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    gap: 24px;
}

.auth-wrapper::before,
.auth-wrapper::after {
    content: '';
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    z-index: 0;
}

.auth-wrapper::before {
    width: 240px;
    height: 240px;
    background: #8b5cf6;
    top: 12%;
    left: 8%;
}

.auth-wrapper::after {
    width: 280px;
    height: 280px;
    background: #22d3ee;
    bottom: 10%;
    right: 10%;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 28px;
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}


.app-footer {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 16px 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    gap: 12px;
}

.auth-hero {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(160deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.12));
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 60%);
    transform: rotate(-12deg);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    font-size: 12px;
    color: var(--accent-2);
    margin: 0;
}

.auth-hero h1 {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    color: var(--text);
}

.subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 44ch;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    width: fit-content;
}

.pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
}

.auth-panel {
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.15), transparent 40%);
    pointer-events: none;
}

.panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.alert strong {
    display: block;
    margin-bottom: 6px;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
    color: #fca5a5;
}

.alert-error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.18);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.field-label {
    font-size: 13px;
    color: var(--muted);
}

.field-error {
    font-size: 13px;
    color: #fca5a5;
}

.login-form input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 14px 12px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
}

.login-form button {
    margin-top: 6px;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0c0a1a;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(34, 211, 238, 0.35);
}

.login-form button:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

    .auth-hero {
        order: 2;
    }

    .auth-panel {
        order: 1;
    }
}

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

    .auth-panel,
    .auth-hero {
        padding: 22px;
    }

    .pill {
        width: 100%;
        justify-content: center;
    }
}
