/* login.css */

/* --- Variables (Coherencia con style.css) --- */
:root {
    --dark-bg: #101010;
    --card-bg: #1d1d1d; /* Fondo ligeramente más claro para la tarjeta del login */
    --primary-color: #007bff; /* Azul de énfasis */
    --text-color: #ffffff;
    --input-bg: #2b2b2b;
    --input-border: #444444;
    --google-blue: #4285f4;
}

/* --- Contenedor Principal (Login Card) --- */
.login-container {
    width: 100%;
    max-width: 400px; /* Tamaño más compacto para un formulario de login */
    background-color: var(--card-bg);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); /* Sombra oscura y profunda */
    text-align: center;
    color: var(--text-color);
    margin: 50px auto; /* Centrado si no usas el body con flex en style.css */
}

/* Si tu body ya usa display: flex y está centrado globalmente (como en style.css),
   entonces el 'margin: auto' no es estrictamente necesario, pero es seguro. */


/* --- Títulos y Subtítulos --- */
.login-title {
    font-size: 2rem;
    font-weight: 700;
    
    color: var(--text-color);
}

.login-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: #b0b0b0;

}

.brand-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Formulario y Campos --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
}

.form-label-password {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px; /* Espacio superior para separar del campo de email */
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #66b2ff;
}

/* Grupo de Input (Icono y Campo) */
.input-group {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0 15px;
    height: 50px; /* Altura uniforme para profesionalidad */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.input-icon {
    color: #999999;
    margin-right: 10px;
    font-size: 1rem;
}

.input-group input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    outline: none;
    font-size: 1rem;
    height: 100%;
    padding: 0;
}

.input-group input::placeholder {
    color: #777;
    font-weight: 300;
}


/* --- Botones --- */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    
}

/* Botón Primario (Iniciar Sesión) */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Botón de Google */
.btn-google {
    display: block;
    background-color: var(--google-blue);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    width: 100%;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
}

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

.google-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* --- Opción de Registro --- */
.register-option {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #b0b0b0;
    padding-bottom: 20px;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}
