* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Clases para controlar visibilidad en móvil/desktop */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.background {
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 10, 0.8), rgba(0, 0, 10, 0.8)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}


.left-content {
    color: white;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 15;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 5rem;
    margin-bottom: 6rem;
}

.tagline h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.tagline p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.btn-volver {
    display: flex;
    height: 45px;
    width: 180px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    letter-spacing: 1px;
    transition: all 0.2s linear;
    cursor: pointer;
    border: none;
    margin-top: 40px;
    margin-right: auto;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    position: relative;
    z-index: 10;
    text-decoration: none;
}

.btn-volver > svg {
    margin-right: 5px;
    margin-left: 5px;
    font-size: 20px;
    transition: all 0.4s ease-in;
}

.btn-volver:hover > svg {
    font-size: 1.2em;
    transform: translateX(-5px);
}

.btn-volver:hover {
    box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff;
    transform: translateY(-2px);
}

.dots {
    display: flex;
    gap: 10px;
    margin-top: 3rem;
}

.dot {
    width: 50px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.dot.active {
    background-color: white;
}


.form-container {
    background-color: white;
    border-radius: 20px 20px 0 0;
    width: 500px;
    max-width: 90%;
    padding: 40px 50px;
    position: fixed;
    bottom: 0;
    right: 5%;
    height: auto;
    min-height: 60vh;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.form-header {
    margin-bottom: 2rem;
}

.welcome-text {
    font-size: 0.9rem;
    color: #666;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #666;
    display: block;
}

input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus {
    outline: none;
    border-color: #999;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.continue-btn {
    width: 100%;
    padding: 15px;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.continue-btn:hover {
    background-color: #333;
}


.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
    color: #666;
    font-size: 0.9rem;
}


.google-btn {
    width: 100%;
    padding: 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.google-btn img {
    width: 20px;
    height: 20px;
}


.register-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.register-link a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}


@media (max-width: 1200px) {
    .form-container {
        width: 600px;
        right: 50%;
        transform: translateX(50%);
    }

    .left-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        top: 25%;
    }
}

@media (max-width: 992px) {
    .form-container {
        width: 100%;
        max-width: 100%;
        right: 0;
        transform: none;
        padding: 30px;
        position: fixed;
        bottom: 0;
        margin-top: 0;
        min-height: 55vh;
        max-height: 65vh;
        border-radius: 20px 20px 0 0;
    }

    .left-content {
        width: 90%;
        top: 22%;
        position: absolute;
        text-align: left;
    }

    .logo {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .tagline h1 {
        font-size: 2rem;
    }
    
    .tagline p {
        font-size: 0.9rem;
    }
    
    .btn-volver {
        width: 160px;
        height: 40px;
        margin-top: 20px;
        margin-left: auto;
        font-size: 13px;
        z-index: 20;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        padding-top: 40px;
    }
    
    .background {
        position: fixed;
        height: 100vh;
        z-index: 1;
    }
    
    .form-container {
            position: relative;
            width: 90%;
            max-width: 400px;
            margin: 0 auto;
            padding: 20px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            margin-top: 180px;
            margin-bottom: 40px;
            transform: none;
            right: auto;
            height: auto;
            overflow-y: auto;
            max-height: none;
            z-index: 5;
        }

        .left-content {
            position: fixed;
            width: 100%;
            top: 40px;
            left: 0;
            transform: none;
            text-align: center;
            color: white;
            z-index: 1000;
            pointer-events: none;
        }
        
        .left-content .btn-volver {
            pointer-events: auto;
        }

    .logo {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .tagline {
        display: none;
    }
    
    .dots {
        display: none;
    }
    
    /* Cambiar visibilidad para móviles */
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .btn-volver {
            width: 140px;
            height: 38px;
            margin: 0 auto 30px auto;
            font-size: 12px;
            z-index: 1000;
            display: flex;
            background-color: rgba(255, 255, 255, 0.9);
        }
}



@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-container {
        width: 95%;
        padding: 15px;
        height: auto;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .left-content {
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    .btn-volver {
        width: 120px;
        height: 36px;
        margin: 0 auto 20px auto;
        font-size: 11px;
        z-index: 25;
    }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 360px) {
    .form-container {
        padding: 15px;
        height: 85vh;
    }
    
    .left-content {
        top: 8%;
    }
    
    .logo {
        font-size: 3.5rem;
        margin-bottom: 0;
    }
    
    .btn-volver {
        width: 120px;
        height: 36px;
        margin-top: 10px;
        margin-left: auto;
        font-size: 11px;
        z-index: 30;
    }
}