/* public/css/login-styles.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #8b7fc9, #5a3e9e, #3a2a6e);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    display: flex;
    width: 850px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(74, 46, 145, 0.3);
    backdrop-filter: blur(2px);
}

/* Panel Izquierdo */
.left-panel {
    background: linear-gradient(135deg, #7c5bc2, #5a3e9e, #3a2a6e);
    color: white;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: shimmer 20s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.left-panel img {
    width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.left-panel h1 {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.left-panel p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #f0eaff;
    font-weight: 500;
    max-width: 90%;
}

/* Panel Derecho */
.right-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #4a2e91;
    background: white;
}

.right-panel h2 {
    color: #5a3e9e;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.8em;
    position: relative;
}

.right-panel h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7c5bc2, #4a2e91);
    border-radius: 2px;
}

input[type="text"], input[type="password"] {
    width: 90%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 2px solid #d9c8ff;
    border-radius: 12px;
    outline: none;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fefaff;
    font-family: inherit;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #7c5bc2;
    box-shadow: 0 0 0 3px rgba(124, 91, 194, 0.2);
    background: white;
}

input:hover {
    border-color: #9b7bd9;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    font-size: 0.9em;
    color: #5a3e9e;
    margin-top: 10px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #7c5bc2;
}

.options a {
    color: #7c5bc2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.options a:hover {
    color: #4a2e91;
    text-decoration: underline;
}

button {
    background: linear-gradient(135deg, #7c5bc2, #5a3e9e);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 1.1em;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90%;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(90, 62, 158, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #8b6fc9, #6947c5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(90, 62, 158, 0.4);
}

button:active {
    transform: translateY(0px);
}

.footer-text {
    margin-top: 25px;
    font-size: 0.85em;
    color: #7c5bc2;
    text-align: center;
}

/* Notificaciones */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7c5bc2, #5a3e9e);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(90, 62, 158, 0.3);
    display: none;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(20px); }
    10%, 90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 90%;
        height: auto;
        margin: 20px;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        padding: 30px;
    }
    
    .left-panel {
        padding: 30px;
    }
    
    .left-panel img {
        width: 140px;
    }
    
    .left-panel h1 {
        font-size: 1.8em;
    }
    
    .right-panel h2 {
        font-size: 1.5em;
    }
    
    button {
        font-size: 1em;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .left-panel p {
        font-size: 0.85em;
    }
    
    .options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    input[type="text"], input[type="password"], button {
        width: 95%;
    }
}