/* ========================================
   ESTILOS PARA PÁGINA DE REGISTRO - COHERENTE CON LOGIN
   ======================================== */

/* Variables CSS (igual que login) */
: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;
    background: var(--bg-light);
    margin-top: 80px;
}

/* 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;
}

/* Sección del logo grande - AJUSTADO AL MISMO TAMAÑO QUE LOGIN */
.auth-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 2rem;
}

.big-logo-container {
    text-align: center;
    animation: fadeInLeft 0.8s ease-out;
    margin-top: 1rem;
}

/* LOGO MÁS PEQUEÑO - AHORA DEL MISMO TAMAÑO QUE EN LOGIN */
.big-logo {
    width: 200px; /* Mismo tamaño que en login */
    height: 200px; /* Mismo tamaño que en login */
    border-radius: 50%;
    border: 5px solid var(--primary-color); /* Borde igual que en login */
    box-shadow: var(--shadow-lg); /* Sombra igual que en login */
    margin-bottom: 2rem; /* Espacio igual que en login */
    object-fit: cover;
    transition: var(--transition);
}

.big-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(44, 123, 229, 0.3);
}

/* QUITAR EL TEXTO "SMARTSTAY SOLUTION" - IGUAL QUE EN LOGIN */
.big-logo-container h1 {
    display: none; /* Ocultar el texto como en login */
}

.logo-subtitle {
    font-size: 1.2rem; /* Tamaño igual que en login */
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Sección del formulario */
.auth-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 3rem;
}

.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;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.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;
}

/* 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="text"],
.campo-grupo input[type="email"],
.campo-grupo input[type="password"],
.campo-grupo input[type="tel"] {
    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);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 3.5rem !important;
}

.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);
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(44, 123, 229, 0.1);
}

.password-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    transition: var(--transition);
}

/* Opciones del formulario */
.form-options {
    margin: 1rem 0;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1.4;
}

.terms-check.error {
    color: var(--error-color);
}

.terms-check.error .checkmark {
    border-color: var(--error-color);
}

.terms-check input[type="checkbox"] {
    display: none;
}

.terms-check .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.terms-check input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.terms-check input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-check a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-check a: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 login */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   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);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========================================
   RESPONSIVE DESIGN - AJUSTADO AL MISMO TAMAÑO QUE LOGIN
   ======================================== */

@media (max-width: 1024px) {
    .auth-hero-section {
        gap: 3rem;
    }

    .big-logo {
        width: 180px; /* Mismo que en login */
        height: 180px; /* Mismo que en login */
    }
}

@media (max-width: 768px) {
    .auth-main-contenedor {
        padding: 5rem 1rem 1rem;
        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; /* Mismo que en login */
        height: 150px; /* Mismo que en login */
    }

    .logo-subtitle {
        font-size: 1rem; /* Mismo que en login */
    }
}

@media (max-width: 480px) {
    .auth-main-contenedor {
        padding: 4rem 0.5rem 0.5rem;
        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; /* Mismo que en login */
        height: 120px; /* Mismo que en login */
        border-width: 4px; /* Borde igual que en login */
    }

    .logo-subtitle {
        font-size: 0.95rem; /* Mismo que en login */
    }

    .btn-auth {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .campo-grupo input[type="text"],
    .campo-grupo input[type="email"],
    .campo-grupo input[type="password"],
    .campo-grupo input[type="tel"] {
        padding: 0.9rem 1rem;
        font-size: 16px;
    }

    .terms-check {
        font-size: 0.85rem;
    }
}

/* 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; /* Mismo que en login */
        height: 100px; /* Mismo que en login */
    }

    .auth-form-header h2 {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.9rem; /* Mismo que en login */
    }
}

/* ========================================
   ESTILOS PARA MODAL DE TÉRMINOS Y CONDICIONES - CORREGIDO
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease;
}

/* Fondo opaco - SOLO el fondo */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); /* ¡AQUÍ ESTÁ EL BLUR! */
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

/* Contenido del modal - Misma posición que contacto */
.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 0;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 1;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
}

.modal-close:hover {
    transform: scale(1.2);
    color: var(--accent-gold);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 60vh;
}

.terms-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(1rem, 3vw, 2rem);
    background: none;
    border: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--white);
}

.tab-button:hover:not(.active) {
    color: var(--text-dark);
    background: rgba(44, 123, 229, 0.05);
}

.tab-content {
    padding: clamp(1.5rem, 4vw, 2rem);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-pane h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.tab-pane h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem 0;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.tab-pane p, .tab-pane ul {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.tab-pane ul {
    padding-left: 1.5rem;
}

.tab-pane li {
    margin-bottom: 0.5rem;
    position: relative;
}

.tab-pane li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.modal-footer {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1rem);
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.modal-footer button {
    flex: 1;
    min-width: 120px;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border: none;
    border-radius: clamp(8px, 2vw, 12px);
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(44, 123, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 123, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mensaje de error para términos */
.terms-error-message {
    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);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInDown 0.3s ease;
}

/* MISMAS ANIMACIONES QUE EL MODAL DE CONTACTO */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Scroll personalizado para el modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 550px;
        max-height: 95vh;
    }

    .modal-body {
        max-height: 70vh;
    }

    .terms-tabs {
        flex-direction: column;
    }

    .tab-button {
        padding: 1rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 0;
        border-radius: 12px;
        max-width: 450px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-header {
        padding: 1.2rem;
    }

    .modal-body {
        padding: 1rem 0.8rem;
        max-height: 75vh;
    }

    .tab-pane h3 {
        font-size: 1.3rem;
    }

    .tab-pane h4 {
        font-size: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        min-width: auto;
    }
}

/* Deshabilitar scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* 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 */
.barra-contenedor .logo img {
    width: 113px !important;
    height: 115px !important;
}

.big-logo-container .big-logo {
    width: 200px !important;
    height: 200px !important;
}

.footer-logo img {
    width: 100px !important;
    height: 100px !important;
}