/* Estilos para el nuevo login del Sistema de Bonos */
:root {
    --green-primary: #2e7d32;
    --green-secondary: #4caf50;
    --green-light: #81c784;
    --green-dark: #1b5e20;
    --green-accent: #00c853;
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #757575;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Estructura principal */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 20px;
    font-family: 'Lato', sans-serif;
}

.login-wrapper {
    display: flex;
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Panel de información (izquierdo) */
.login-info-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--text-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.login-brand {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

/* Animación para el logo */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.login-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.35));
    transition: transform 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.login-logo-wrapper:hover .login-logo {
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.login-brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.login-brand-tagline {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    border-left: 3px solid var(--green-light);
    padding-left: 10px;
    margin-bottom: 20px;
}

.login-description {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.login-features {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.login-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.login-feature:hover {
    transform: translateX(5px);
}

.login-feature-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.login-feature:hover .login-feature-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.login-feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px;
}

.login-feature-content p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Panel de formulario (derecho) */
.login-form-panel {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
}

.login-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.login-form-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

.login-alert {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.login-alert-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #c62828;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.login-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    color: var(--text-dark);
}

.login-input:focus {
    outline: none;
    border-color: var(--green-secondary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background-color: #fff;
}

.login-input:focus + .login-input-icon {
    color: var(--green-primary);
}

.login-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.login-password-toggle:hover {
    color: var(--green-primary);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.login-remember {
    display: flex;
    align-items: center;
}

.login-remember input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--green-primary);
    width: 16px;
    height: 16px;
}

.login-forgot {
    color: var(--green-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.login-button span {
    z-index: 1;
    letter-spacing: 1px;
}

.login-button i {
    margin-left: 10px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.login-button:hover i {
    transform: translateX(3px);
}

.login-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.login-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-footer i {
    margin-right: 5px;
    color: var(--green-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
    }
    
    .login-info-panel {
        padding: 30px;
    }
    
    .login-form-panel {
        padding: 30px;
    }
    
    .login-brand-name {
        font-size: 1.8rem;
    }
    
    .login-feature {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .login-page {
        padding: 10px;
    }
    
    .login-info-panel {
        padding: 20px;
    }
    
    .login-form-panel {
        padding: 20px;
    }
    
    .login-brand-name {
        font-size: 1.6rem;
    }
    
    .login-feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .login-feature-content h3 {
        font-size: 1rem;
    }
    
    .login-feature-content p {
        font-size: 0.85rem;
    }
}
