* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    background:
        radial-gradient(1200px at 10% 10%, #1e293b 0%, transparent 60%),
        radial-gradient(800px at 90% 90%, #312e81 0%, transparent 55%),
        #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 380px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    animation: fadeUp .4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand .logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    font-size: 13px;
    opacity: .7;
    margin-top: 6px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,.08);
    color: #c7c7d1;
    transition: .25s;
    font-size: 14px;
}

.tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

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

.form.active {
    display: flex;
}

.form input {
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    outline: none;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 14px;
}

.form input:disabled {
    opacity: .5;
}

.form input::placeholder {
    color: rgba(255,255,255,.4);
}

.form button {
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .15s;
}

.form button:hover {
    opacity: .9;
}

.form button:active {
    transform: scale(.98);
}

.auth-card .error {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,0,0,.1);
    color: #f87171;
    font-size: 13px;
    display: none;
}

.auth-card .error:not(:empty) {
    display: block;
}
