* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: white;
}

.auth-content {
    max-width: 400px;
    width: 100%;
    position: relative;
}

.auth-logo {
    display: block;
    margin: 0 auto 2rem;
    width: 150px;
    height: auto;
}

.auth-forms {
    position: relative;
    width: 100%;
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateX(-20px);
}

.auth-form.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.auth-title {
    font-family: 'Zilla Slab', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #3D44DD;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}

.auth-subtitle {
    color: #405057;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #405057;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #3D44DD;
    box-shadow: 0 0 0 2px rgba(61, 68, 221, 0.2);
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #3D44DD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2A33B8;
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: #3D44DD;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
}

.auth-button:hover {
    background-color: #2A33B8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 68, 221, 0.2);
}

.social-auth {
    margin: 1.5rem 0;
    text-align: center;
}

.social-auth p {
    color: #405057;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.social-auth p::before,
.social-auth p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #e0e0e0;
}

.social-auth p::before {
    right: 100%;
}

.social-auth p::after {
    left: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 20px;
    height: 20px;
}

.auth-switch {
    text-align: center;
    color: #405057;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.auth-switch a {
    color: #3D44DD;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #2A33B8;
    text-decoration: underline;
}

.auth-right {
    flex: 1;
    background: url('../assets/images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 100%;
}

.welcome-message {
    position: relative;
    z-index: 1;
    padding: 3rem;
    color: white;
    max-width: 600px;
}

.welcome-message h2 {
    font-family: 'Zilla Slab', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-message p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design Mejorado */
@media (max-width: 1200px) {
    .auth-title {
        font-size: 1.8rem;
    }
    
    .welcome-message h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .auth-right {
        display: none;
    }
    
    .auth-left {
        padding: 2rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .auth-content {
        width: 100%;
        max-width: 450px;
    }
    
    .auth-logo {
        width: 120px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-left {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        padding: 9px 12px;
        font-size: 0.9rem;
    }
    
    .auth-button {
        padding: 11px;
        font-size: 0.9rem;
    }
    
    .social-auth {
        margin: 1.2rem 0;
    }
}

@media (max-width: 576px) {
    body {
        background-color: white;
    }
    
    .auth-container {
        min-height: 100vh;
        align-items: center;
    }
    
    .auth-left {
        padding: 1rem;
        min-height: auto;
    }
    
    .auth-content {
        max-width: 100%;
    }
    
    .auth-logo {
        width: 100px;
        margin-bottom: 1rem;
    }
    
    .auth-title {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .auth-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .forgot-password {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
    
    .auth-button {
        padding: 10px;
        font-size: 0.85rem;
        margin-top: 0.6rem;
    }
    
    .social-auth {
        margin: 1rem 0;
    }
    
    .social-auth p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon img {
        width: 18px;
        height: 18px;
    }
    
    .auth-switch {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) and (max-height: 700px) {
    .auth-logo {
        width: 80px;
        margin-bottom: 0.8rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 0.7rem;
    }
    
    .social-auth {
        margin: 0.8rem 0;
    }
}

/* Estados adicionales */
.form-group input:hover {
    border-color: #a5a5a5;
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.social-icon.google {
    background-color: white;
    border: 1px solid #e0e0e0;
}

.social-icon.apple {
    background-color: white;
    border: 1px solid #e0e0e0;
}

/* Animaciones mejoradas para transición entre formularios */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form.slide-in-right {
    animation: slideInFromRight 0.4s ease forwards;
}

.auth-form.slide-in-left {
    animation: slideInFromLeft 0.4s ease forwards;
}