.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    background-color: #2c2c2c;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #fff;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #3c3c3c;
    background-color: #1c1c1c;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.auth-button {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.auth-button:hover {
    background-color: #0056b3;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: #888;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

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

.error-message {
    background-color: #ff4444;
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* JavaScript disabled states */
.js-enabled .server-side-error {
    display: none;
}

.server-side-error {
    background-color: #ff4444;
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Loading state */
.auth-button[disabled] {
    background-color: #666;
    cursor: not-allowed;
}

.auth-form.loading .auth-button::after {
    content: '...';
    display: inline-block;
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }
}