﻿:root {
            --primary: #00CCFF;
            --primary-dark: #0099CC;
            --primary-light: #66DDFF;
            --primary-pastel: #99EEFF;
            --secondary: #2c3e50;
            --success: #1cc88a;
            --warning: #f6c23e;
            --danger: #e74a3b;
            --dark: #5a5c69;
        }

        body {
            background: linear-gradient(135deg, #00CCFF 0%, #0099CC 50%, #006699 100%);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 20px;
        }

        /* Fondo con burbujas decorativas */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .login-container {
            width: 100%;
            max-width: 450px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
            animation: fadeIn 0.5s ease;
            position: relative;
            z-index: 1;
        }

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

        .login-header {
            background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
            color: white;
            padding: 40px 30px 35px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .login-header::before {
            content: '🏥';
            position: absolute;
            top: -30px;
            right: -30px;
            font-size: 8rem;
            opacity: 0.08;
            transform: rotate(15deg);
        }

        .login-header::after {
            content: '💙';
            position: absolute;
            bottom: -20px;
            left: -20px;
            font-size: 5rem;
            opacity: 0.06;
            transform: rotate(-10deg);
        }

        .login-header .logo-icon {
            font-size: 3.5rem;
            margin-bottom: 10px;
            display: block;
        }

        .login-header h2 {
            font-weight: 700;
            margin: 0;
            font-size: 1.8rem;
            letter-spacing: 1px;
            position: relative;
        }

        .login-header p {
            margin: 8px 0 0 0;
            opacity: 0.9;
            font-size: 0.95rem;
            position: relative;
        }

        .login-body {
            padding: 35px 30px 30px;
        }

        .form-group {
            margin-bottom: 22px;
        }

        .form-label {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 6px;
            display: block;
            font-size: 0.9rem;
        }

        .form-label i {
            color: var(--primary);
            margin-right: 6px;
        }

        .input-group {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
        }

        .input-group-text {
            background: #f8f9fc;
            border: 2px solid #e3e6f0;
            border-right: none;
            color: var(--primary);
            padding: 12px 15px;
        }

        .form-control {
            border: 2px solid #e3e6f0;
            border-left: none;
            padding: 12px 15px;
            font-size: 0.95rem;
            transition: all 0.3s;
            background: #f8f9fc;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: none;
            outline: none;
            background: white;
        }

        .form-control:focus + .input-group-text {
            border-color: var(--primary);
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #adb5bd;
            z-index: 10;
            background: transparent;
            padding: 0 5px;
            transition: all 0.3s;
            border: none;
        }

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

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 10px;
        }

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

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

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

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

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

        .btn-login {
            background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
            color: white;
            border: none;
            padding: 14px 20px;
            font-size: 1.05rem;
            font-weight: 600;
            border-radius: 10px;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4);
        }

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

        .btn-login:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .login-footer {
            text-align: center;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #e3e6f0;
        }

        .login-footer p {
            color: #6c757d;
            font-size: 0.9rem;
            margin: 0;
        }

        .login-footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }

        .login-footer a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .alert-message {
            padding: 12px 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: none;
            font-size: 0.9rem;
            border-left: 4px solid;
        }

        .alert-error {
            background: #fff5f5;
            border-left-color: var(--danger);
            color: var(--danger);
        }

        .alert-warning {
            background: #fff8e6;
            border-left-color: var(--warning);
            color: #856404;
        }

        .features {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #e3e6f0;
            flex-wrap: wrap;
        }

        .feature {
            text-align: center;
            transition: all 0.3s;
        }

        .feature:hover {
            transform: translateY(-3px);
        }

        .feature i {
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 5px;
            display: block;
        }

        .feature span {
            display: block;
            font-size: 0.8rem;
            color: #6c757d;
        }

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ========================================= */
        /* RESPONSIVE */
        /* ========================================= */
        @media (max-width: 576px) {
            body {
                padding: 10px;
            }
            
            .login-header {
                padding: 30px 20px 25px;
            }
            
            .login-header h2 {
                font-size: 1.4rem;
            }
            
            .login-body {
                padding: 25px 20px 20px;
            }
            
            .remember-forgot {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .features {
                gap: 15px;
            }
            
            .feature i {
                font-size: 1.2rem;
            }
            
            .btn-login {
                font-size: 0.95rem;
                padding: 12px 16px;
            }
        }

        @media (max-width: 400px) {
            .login-header .logo-icon {
                font-size: 2.5rem;
            }
            
            .login-header h2 {
                font-size: 1.2rem;
            }
            
            .form-control {
                font-size: 0.85rem;
                padding: 10px 12px;
            }
        }