* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background-color: #f5f7fa;
    position: relative;
}

.btn-back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #7c3aed;
    font-weight: 600;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-back-home svg {
    width: 20px;
    height: 20px;
}

.btn-back-home:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.1);
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sección Izquierda */
.login-left {
    flex: 0 0 500px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

.login-left-content {
    max-width: 400px;
    width: 100%;
}

.login-logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-avatar {
    width: 240px;
    height: auto;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-subtitle {
    font-size: 1rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.info-text-register {
    text-align: center;
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.login-subtitle a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
}

.btn-login-submit {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-login-submit:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.forgot-password {
    text-align: center;
    margin-top: 0.5rem;
}

.forgot-password a {
    font-size: 0.9rem;
    color: #7c3aed;
    text-decoration: underline;
    font-weight: 500;
}

.login-footer {
    margin-top: 5rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-img {
    height: 140px;
    width: auto;
}

.login-footer p {
    font-size: 0.75rem;
    color: #a0aec0;
    line-height: 1.5;
}

.login-footer a {
    color: #7c3aed;
    text-decoration: none;
}

/* Sección Derecha */
.login-right {
    flex: 1;
    background: linear-gradient(rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.1)), url('../img/fondocontacto.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

/* Si fondocontacto.png no se encuentra, usa un degradado */
.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    z-index: 1;
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 4rem;
    max-width: 600px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.info-text {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.btn-learn-more {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 250px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-learn-more:hover {
    background: #6d28d9;
    transform: translateX(5px);
}

.arrow {
    background: white;
    color: #7c3aed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Diseño Responsivo */
@media (max-width: 1024px) {
    .login-left {
        flex: 0 0 450px;
    }
}

@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        flex: 1;
        width: 100%;
        padding: 4rem 2rem;
    }

    .login-right {
        min-height: 600px;
        padding: 2rem;
    }
    
    .info-card {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 3rem 1.5rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .info-title {
        font-size: 1.75rem;
    }
    
    .btn-learn-more {
        width: 100%;
    }
}
