/* ======================================================
LOGIN / REGISTRO / RECUPERAR
====================================================== */

:root {
    --bg: #b7dffd;
    --title: #443030;
    --subtitle: #877a7a;
}

/* Eliminar márgenes y permitir que la página use el 100% de altura */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--bg);
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    /* Convertir el body en un contenedor vertical con flexbox */
    display: flex;
    flex-direction: column;
}

/* Contenedor general */
.auth-container {
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
    background: whitesmoke;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
    text-align: center;
}

/* Logo arriba */
.auth-container .logo img {
    width: 120px;
    margin-bottom: 20px;
}

/* Titulos */
.auth-container h2 {
    color: var(--title);
    margin-bottom: 15px;
}

/* Párrafo introductorio */
.auth-container p {
    color: var(--subtitle);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Formularios */
.auth-container form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.auth-container form.active {
    display: flex;
}

/* Inputs */
.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.auth-container input::placeholder {
    color: #877a7a;
    font-family: monospace;
    font-size: 14px;
    opacity: 0.7;
}

.auth-container input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 6px rgba(33,150,243,0.3);
}

/* Botones */
.auth-container .btn-primary {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    background: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.auth-container .btn-primary:hover {
    background: #1E88E5;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.auth-container .btn-primary:active {
    background: #1976D2;
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Botón secundario (Gmail) */
.auth-container .btn-secondary {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.auth-container .btn-secondary:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Links */
.auth-container .links {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 10px;
}

.auth-container .links a {
    color: #2196F3;
    text-decoration: none;
}

.auth-container .links a:hover {
    text-decoration: underline;
    color: #1E88E5;
}

/* Divider */
.auth-container .divider {
    text-align: center;
    margin: 15px 0;
    font-size: 12px;
    color: #877a7a;
}

/* Responsive */
@media (min-width: 768px) {
    .auth-container {
        padding: 30px;
    }

    .auth-container input[type="text"],
    .auth-container input[type="email"],
    .auth-container input[type="password"],
    .auth-container input[type="tel"] {
        padding: 16px;
        font-size: 18px;
    }

    .auth-container .btn-primary,
    .auth-container .btn-secondary {
        font-size: 18px;
        padding: 16px 0;
    }
}



body {
    
}

footer {
    
}

/* ── Mensaje de feedback en formularios sign-in ────────────── */
.form-msg {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    margin-top: 4px;
}

/* ======================================================
MENSAJE DE ERROR (usado en admin/login.html)
====================================================== */
.error-msg {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
}
