/* ========================================
   ESTILOS PARA PÁGINA DE LOGIN - DISEÑO ESPECÍFICO
   ======================================== */

/* Variables CSS (coherente con las demás páginas) */
:root {
    --primary-color: #2c7be5;
    --primary-dark: #1a5cc2;
    --secondary-color: #f1f5f9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --accent-gold: #d4af37;
    --success-color: #10b981;
    --error-color: #ef4444;
    --bg-light: #f8fafc;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor principal del auth - CORREGIDO */
.auth-main-contenedor {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5% 2rem; /* Más padding arriba para evitar navbar */
    background: var(--bg-light);
    margin-top: 80px; /* Espacio adicional para el navbar fixed */
}

/* Sección hero del auth */
.auth-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    margin-top: 2rem; /* Espacio adicional */
}

/* Sección del logo grande */
.auth-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 2rem; /* Espacio desde el navbar */
}

.big-logo-container {
    text-align: center;
    animation: fadeInLeft 0.8s ease-out;
    margin-top: 1rem; /* Espacio adicional */
}

.big-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    object-fit: cover;
    transition: var(--transition);
}

.big-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(44, 123, 229, 0.3);
}

.big-logo-container h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Sección del formulario - CORREGIDA */
.auth-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 3rem; /* Más espacio desde el navbar */
}

.auth-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(44, 123, 229, 0.1);
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 0.8s ease-out;
    margin-top: 2rem; /* Espacio adicional */
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem; /* Espacio interno */
}

.auth-form-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-form-header p {
    color: var(--text-light);
    font-size: 1rem;
}
/* Botones sociales redondos - estilo minimalista */
.social-buttons-round {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.btn-social-round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    background: transparent;
    color: #777;
}

.btn-social-round:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-google-round:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook-round:hover {
    border-color: #4267B2;
    color: #4267B2;
}

/* Agrega esto a tu Auth.css */

.btn-github {
    background: #333;
    color: var(--white);
    border-color: #333;
}

.btn-github:hover {
    background: #24292e;
    border-color: #24292e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Si usas botones redondos como el que comentaste */
.btn-social-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.btn-github-round {
    background: #333;
    color: var(--white);
    border-color: #333;
}

.btn-github-round:hover {
    background: #24292e;
    border-color: #24292e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(36, 41, 46, 0.3);
}

.social-login h3 {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1rem;
}
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mensajes */
.mensaje-error,
.mensaje-success {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInDown 0.3s ease;
}

.mensaje-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.mensaje-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.campo-grupo label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.campo-grupo input[type="email"],
.campo-grupo input[type="password"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.campo-grupo input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

/* ESTILOS ESPECÍFICOS PARA PASSWORD CONTAINER - CORREGIDOS */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.2rem !important; /* Espacio fijo para el botón */
    border: 2px solid #d1d5db !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: var(--transition) !important;
    background: var(--white) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
}

.password-container input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1) !important;
}

/* Botón de toggle más específico */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(44, 123, 229, 0.1);
}

.toggle-password:active {
    transform: scale(0.95);
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.remember-me:hover {
    color: var(--text-dark);
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.remember-me input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Botón de autenticación */
.btn-auth {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(44, 123, 229, 0.35);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(44, 123, 229, 0.5);
}

.btn-auth:active {
    transform: translateY(-1px);
}

/* Enlace de registro */
.auth-register-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-register-link p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-register-link a:hover {
    text-decoration: underline;
}

/* Botón Scroll to Top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN - CORREGIDO
   ======================================== */

@media (max-width: 1024px) {
    .auth-hero-section {
        gap: 3rem;
    }

    .big-logo {
        width: 180px;
        height: 180px;
    }

    .big-logo-container h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .auth-main-contenedor {
        padding: 5rem 1rem 1rem; /* Más padding arriba en móvil */
        min-height: calc(100vh - 150px);
        margin-top: 70px;
    }

    .auth-hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-top: 1rem;
    }

    .auth-logo-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .auth-form-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .auth-form-container {
        padding: 2rem;
        max-width: 100%;
        margin-top: 1rem;
    }

    .big-logo {
        width: 150px;
        height: 150px;
    }

    .big-logo-container h1 {
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-main-contenedor {
        padding: 4rem 0.5rem 0.5rem; /* Aún más padding arriba */
        margin-top: 60px;
    }

    .auth-form-container {
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 0.5rem;
    }

    .auth-form-header {
        padding-top: 0.5rem;
    }

    .auth-form-header h2 {
        font-size: 1.8rem;
    }

    .big-logo {
        width: 120px;
        height: 120px;
    }

    .big-logo-container h1 {
        font-size: 1.8rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }

    .btn-auth {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .campo-grupo input[type="email"],
    .campo-grupo input[type="password"] {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Prevenir zoom en iOS */
    }
}

/* Dispositivos muy pequeños */
@media (max-width: 360px) {
    .auth-main-contenedor {
        padding: 3.5rem 0.5rem 0.5rem;
    }

    .auth-form-container {
        padding: 1.2rem;
    }

    .big-logo {
        width: 100px;
        height: 100px;
    }

    .big-logo-container h1 {
        font-size: 1.5rem;
    }

    .auth-form-header h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   CORRECCIÓN DEL TAMAÑO DEL LOGO - AUTH.CSS
   ======================================== */

/* Fuerza el tamaño del logo en todas partes */
img[src*="Logo.jpg"],
img[alt*="LOGO SMARTSTAY"],
img[alt*="Logo Hotel"],
img[alt*="SmartStay Solution"] {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Específico para cada ubicación en Auth */
.barra-contenedor .logo img {
    width: 113px !important;
    height: 115px !important;
}

.big-logo-container .big-logo {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain !important; /* Cambia esto de cover a contain */
}

.footer-logo img {
    width: 100px !important;
    height: 100px !important;
}

/* También asegura el logo en el navbar del login */
.barra-contenedor .logo img {
    width: 113px !important;
    height: 115px !important;
    object-fit: contain !important;
}