* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(20, 60, 120, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(40, 20, 80, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(10, 40, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.auth-card {
    background: rgba(18, 18, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-name {
    display: block;
    font-family: 'Michroma', system-ui, sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    color: #ffffff;
}

.brand-sub {
    display: block;
    font-family: 'Michroma', system-ui, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.3rem;
}

.auth-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: rgba(100, 140, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(100, 140, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, rgba(60, 100, 200, 0.8), rgba(80, 60, 180, 0.8));
    border: 1px solid rgba(100, 140, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(70, 110, 220, 0.9), rgba(90, 70, 200, 0.9));
    border-color: rgba(120, 160, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(60, 100, 200, 0.3);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid rgba(220, 50, 50, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(50, 150, 220, 0.1);
    border: 1px solid rgba(50, 150, 220, 0.2);
    border-radius: 8px;
    color: rgba(100, 180, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.username-badge {
    background: rgba(60, 100, 200, 0.15);
    border: 1px solid rgba(60, 100, 200, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(140, 180, 255, 0.9);
    text-align: center;
    margin-bottom: 1.25rem;
    min-height: 2.25rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    .auth-card {
        padding: 2rem 1.5rem;
    }
    .brand-name {
        font-size: 1.5rem;
    }
}
