/* ==========================================================================
   Configuración General e Interfaz Musical
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at center, #1e2230 0%, #0f111a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f5f6f9;
    padding: 20px;
}

main {
    width: 100%;
    max-width: 460px;
}

/* Tarjeta de Login */
.login-card {
    background: rgba(22, 26, 41, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(29, 221, 225, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(29, 221, 225, 0.05);
    text-align: center;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #1ddde1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 25px;
}

.card-divider {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

/* ==========================================================================
   Formularios y Campos de Entrada
   ========================================================================== */
.field {
    text-align: left;
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-input {
    width: 100%;
    background-color: #121520;
    border: 1px solid #2a314d;
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.field-input:focus {
    outline: none;
    border-color: #1ddde1;
    box-shadow: 0 0 0 3px rgba(29, 221, 225, 0.15);
}

.field-input::placeholder {
    color: #475569;
}

/* Mensajes de Error de Validación (Ocultos por defecto) */
.field-error {
    display: none; 
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Botones y Separadores
   ========================================================================== */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #1ddde1 0%, #0fa3a6 100%);
    border: none;
    border-radius: 8px;
    padding: 14px;
    color: #0f111a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 221, 225, 0.3);
}

.btn-login:active {
    transform: translateY(1px);
}

/* Separador Integrado */
.separator {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: #2a314d;
}

.separator-text {
    padding: 0 15px;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Botón de Google Auténtico */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

/* ==========================================================================
   Alertas Globales (Backend Errores)
   ========================================================================== */
.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error::before {
    content: "\f057"; /* Icono FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}