:root {
    --primary: #ff6101;
    --primary-dark: #e55701;
    --dark: #494949;
    --gray: #A1A1A1;
    --light: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container-login {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background-color: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#contenedor-recuperar {
    max-width: 450px !important; /* El !important asegura que gane a la clase general */
    margin: 100px auto;          /* Lo centra y le da aire arriba/abajo */
}

/* Panel izquierdo */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a3d 100%);
    color: var(--light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.left-panel h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.left-panel p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.features {
    list-style: none;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.features li i {
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 20px;
}

/* Panel derecho */
.right-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Formulario */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--light);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 97, 1, 0.2);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.1rem;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--dark);
}

/* Opciones del formulario */
.form-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 10px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.remember label {
    color: var(--dark);
    font-size: 0.9rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botón de login */
.btn-login {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 97, 1, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Sección de registro */
.signup-section {
    margin-top: 30px;
    text-align: center;
}

.signup-link {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.signup-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Alertas */
.alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Animación para alertas */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container-login {
        max-width: 800px;
        min-height: auto;
    }
    
    .left-panel, .right-panel {
        padding: 30px;
    }
    
    .left-panel h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container-login {
        flex-direction: column;
        border-radius: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .left-panel {
        padding: 30px 25px;
        text-align: center;
    }
    
    .left-panel::before {
        display: none;
    }
    
    .logo {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .left-panel h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .features {
        margin-top: 20px;
    }
    
    .features li {
        justify-content: center;
        text-align: left;
    }
    
    .right-panel {
        padding: 30px 25px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container-login {
        border-radius: 8px;
        max-height: 95vh;
    }
    
    .left-panel, .right-panel {
        padding: 20px 15px;
    }
    
    .left-panel h1 {
        font-size: 1.3rem;
    }
    
    .left-panel p {
        font-size: 0.9rem;
    }
    
    .features li {
        font-size: 0.85rem;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 12px 45px 12px 45px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .signup-link, .copyright {
        font-size: 0.8rem;
    }
}

/* Para pantallas muy pequeñas (móviles en portrait) */
@media (max-width: 360px) {
    .left-panel h1 {
        font-size: 1.2rem;
    }
    
    .features li {
        font-size: 0.8rem;
    }
    
    .form-header h2 {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 10px 40px 10px 40px;
    }
    
    .input-icon, .password-toggle {
        font-size: 1rem;
    }
}

/* Para tablets en landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .container-login {
        min-height: 500px;
    }
    
    .left-panel, .right-panel {
        padding: 30px;
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1400px) {
    .container-login {
        max-width: 1200px;
    }
    
    .left-panel, .right-panel {
        padding: 60px;
    }
    
    .left-panel h1 {
        font-size: 2.5rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
}

/* Asegurar que los inputs sean legibles en móviles */
input, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Mejorar accesibilidad para focus */
.form-control:focus, .btn-login:focus, .password-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}