/* Estilos comunes para las páginas de autenticación (Registro y Login) */

body {
    background-color: #0d0d0d;
    color: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-header {
    background-color: #1a1a1a;
    padding: 20px;
    border-bottom: 2px solid #ffc107;
    text-align: center;
}

.auth-header .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
}

.auth-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-container {
    background-color: #121212;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.auth-container h2 {
    color: #ffc107;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
}

.auth-form {
    padding: 10px;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #f0f0f0;
    font-size: 1em;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.auth-form small {
    display: block;
    color: #888;
    margin-top: 5px;
    font-size: 0.85em;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    margin-top: 10px;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #f0f0f0;
    text-align: center;
}

.message.error {
    background-color: #dc3545;
    color: #fff;
}
.message.success {
    background-color: #28a745;
    color: #fff;
}
.message.loading {
    background-color: #ffc107;
    color: #000;
}

.auth-link {
    margin-top: 20px;
    font-size: 0.95em;
    color: #ccc;
}
.auth-link a {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
}
.auth-link a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    color: #ccc;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 193, 7, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }
    .auth-container h2 {
        font-size: 1.8em;
    }
    .auth-form input, .auth-form .btn-primary {
        font-size: 0.95em;
    }
}
