body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-form {
    background: #2a2a3e;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-form h1 {
    text-align: center;
    color: #00d4ff;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.auth-form h2 {
    text-align: center;
    color: #ffffff;
    margin: 0 0 30px 0;
    font-size: 20px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #1e1e2e;
    border: 1px solid #404050;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #00d4ff;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.auth-form button:active {
    transform: translateY(0);
}

.auth-form p {
    text-align: center;
    color: #aaaaaa;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 14px;
}

.auth-form a {
    color: #00d4ff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.auth-form a:hover {
    text-decoration: underline;
}

.error-message {
    display: none;
    background: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#totp-setup {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#totp-setup h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

#totp-setup p {
    color: #aaaaaa;
    margin-bottom: 15px;
}

#qr-code {
    margin: 20px 0;
    text-align: center;
}

#qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

#totp-secret {
    background: #1e1e2e;
    color: #00d4ff;
    font-family: monospace;
    padding: 8px;
    margin-bottom: 10px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}