/* ============================================
   SISTEMA DE SALIDAS PEDAGÓGICAS - LOGIN STYLES
   ============================================ */

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #60a5fa 75%, #93c5fd 100%);
}

.login-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
}

/* ============================================
   SECCIÓN IZQUIERDA - INFORMACIÓN
   ============================================ */

.info-section {
    flex: 1;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.info-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 70%;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.shape-2 {
    top: 60%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid white;
    animation: rotate 8s linear infinite;
}

.shape-3 {
    top: 30%;
    right: 20%;
    width: 50px;
    height: 50px;
    background: white;
    animation: bounce 3s ease-in-out infinite;
}

.shape-4 {
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 2px;
    background: white;
    transform: rotate(45deg);
}

.dots-pattern {
    position: absolute;
    top: 15%;
    right: 30%;
    display: grid;
    grid-template-columns: repeat(6, 8px);
    grid-gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 2s ease-in-out infinite;
}

.dot:nth-child(odd) {
    animation-delay: 0.5s;
}

.info-content {
    position: relative;
    z-index: 10;
    max-width: 675px;
    margin: 0 auto;
    text-align: center;
}

.welcome-text {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.5;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 675px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #1e40af);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
    text-align: left;
}

.info-card-header i {
    font-size: 1.3rem;
    color: #93c5fd;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.info-card-text {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* ============================================
   SECCIÓN DERECHA - FORMULARIO LOGIN
   ============================================ */

.login-section {
    flex: 0 0 480px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 380px;
    animation: slideInRight 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.5rem;
    accent-color: #3b82f6;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

.create-account {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.create-account a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.create-account a:hover {
    color: #1d4ed8;
}

/* ============================================
   ALERTAS Y MENSAJES
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(1deg); }
    66% { transform: translate(-5px, 5px) rotate(-1deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .info-section {
        flex: 0 0 45vh;
        padding: 2rem;
        text-align: center;
    }
    
    .info-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .welcome-text {
        font-size: 2rem;
    }
    
    .subtitle {
        margin-bottom: 1.5rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
        max-width: 400px;
        padding: 0;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card-title {
        font-size: 0.9rem;
    }
    
    .info-card-text {
        font-size: 0.8rem;
    }
    
    .login-section {
        flex: 1;
        padding: 1rem;
    }
    
    .geometric-shapes {
        display: none;
    }
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 1.5rem;
        flex: 0 0 35vh;
    }
    
    .welcome-text {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .info-cards {
        gap: 0.8rem;
    }
    
    .info-card {
        padding: 0.8rem;
    }
    
    .login-container {
        max-width: 100%;
    }
}

/* ============================================
   MODO OSCURO (OPCIONAL)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .login-section {
        background: #1f2937;
    }
    
    .login-title {
        color: #60a5fa;
    }
    
    .login-subtitle {
        color: #9ca3af;
    }
    
    .form-label {
        color: #d1d5db;
    }
    
    .form-input {
        background: #374151;
        border-color: #4b5563;
        color: #ffffff;
    }
    
    .form-input:focus {
        background: #4b5563;
        border-color: #60a5fa;
    }
    
    .checkbox-label {
        color: #9ca3af;
    }
}