﻿        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #ff000029;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%23f8f9fa"/><path d="M20 20h10v10H20zM70 20h10v10H70zM20 70h10v10H20zM70 70h10v10H70z" fill="%23f0f2f5"/></svg>');
            background-size: 40px 40px;
        }
        
        .login-container {
            width: 100%;
            max-width: 460px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(200, 40, 50, 0.12), 0 4px 15px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            border: 1px solid #e8e8e8;
            transition: transform 0.3s ease;
        }
        
        .login-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 45px rgba(200, 40, 50, 0.15), 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        
        .login-header {
            background: linear-gradient(135deg, #c82333 0%, #e63946 100%);
            padding: 11px 20px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .login-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 20px 20px;
            opacity: 0.3;
        }
        
        .logo-container {
            margin-bottom: 5px;
            position: relative;
            z-index: 2;
        }
        
        .logo {
            height: 85px;
            width: auto;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }
        
        .intranet-title {
            font-size: 18px;
            font-weight: 600;
            margin-top: 8px;
            opacity: 0.9;
            letter-spacing: 0.5px;
        }
        
        .login-header h1 {
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 8px;
            position: relative;
            z-index: 2;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .login-header p {
            font-size: 14px;
            opacity: 0.85;
            max-width: 300px;
            margin: 0 auto;
            line-height: 1.5;
            position: relative;
            z-index: 2;
        }
        
        .login-form {
            padding: 35px 40px;
        }
        
        .form-group {
            margin-bottom: 24px;
            position: relative;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
            letter-spacing: 0.3px;
        }
        
        .input-with-icon {
            position: relative;
        }
        
        .input-with-icon i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #c82333;
            font-size: 18px;
            z-index: 2;
        }
        
        .form-control {
            width: 100%;
            padding: 16px 16px 16px 52px;
            border: 1.5px solid #e1e5eb;
            border-radius: 8px;
            font-size: 15px;
            transition: all 0.3s;
            background-color: #f8f9fa;
            color: #333;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #c82333;
            box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.15);
            background-color: white;
        }
        
        .password-toggle {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #777;
            cursor: pointer;
            font-size: 16px;
            z-index: 3;
        }
        
        .password-toggle:hover {
            color: #c82333;
        }
        
        .form-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            font-size: 14px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
        }
        
        .remember-me input {
            margin-right: 8px;
            accent-color: #c82333;
            width: 16px;
            height: 16px;
        }
        
        .remember-me label {
            color: #555;
            font-weight: 500;
            cursor: pointer;
        }
        
        .forgot-password {
            color: #c82333;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .forgot-password:hover {
            text-decoration: underline;
            background-color: rgba(200, 35, 51, 0.08);
        }
        
        .btn-login {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #c82333 0%, #e63946 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(200, 35, 51, 0.3);
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }
        
        .btn-login::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.7s;
        }
        
        .btn-login:hover {
            background: linear-gradient(135deg, #b21f2d 0%, #d32f3e 100%);
            box-shadow: 0 6px 18px rgba(200, 35, 51, 0.4);
            transform: translateY(-2px);
        }
        
        .btn-login:hover::before {
            left: 100%;
        }
        
        .btn-login:active {
            transform: translateY(0);
        }
        
        .intranet-info {
            margin-top: 24px;
            padding: 18px;
            background-color: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #c82333;
            font-size: 13px;
            color: #555;
            line-height: 1.5;
        }
        
        .intranet-info h3 {
            color: #c82333;
            margin-bottom: 6px;
            font-size: 14px;
            font-weight: 700;
        }
        
        .intranet-info ul {
            padding-left: 18px;
            margin-top: 8px;
        }
        
        .intranet-info li {
            margin-bottom: 4px;
        }
        
        .security-note {
            display: flex;
            align-items: flex-start;
            margin-top: 3px;
            font-size: 12px;
            color: #777;
            line-height: 1.5;
        }
        
        .security-note i {
            color: #c82333;
            margin-right: 8px;
            margin-top: 2px;
            font-size: 14px;
        }
        
        .footer {
            text-align: center;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            font-size: 12px;
            color: #888;
            line-height: 1.5;
        }
        
        .footer a {
            color: #c82333;
            text-decoration: none;
            font-weight: 600;
        }
        
        .footer a:hover {
            text-decoration: underline;
        }
        
        @media (max-width: 480px) {
            .login-container {
                border-radius: 10px;
            }
            
            .login-form {
                padding: 25px 20px;
            }
            
            .login-header {
                padding: 11px 20px;
            }
            
            .login-header h1 {
                font-size: 22px;
            }
            
            .form-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .intranet-info {
                padding: 14px;
            }
        }
        
        /* Animación de carga */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
