/* คัดลอก CSS เดิมของคุณทั้งหมดมาที่นี่ */
    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    body { font-family: 'Prompt', sans-serif; background: #eef5fc; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 20px; position: relative; overflow-x: hidden; }
    .bg-bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
    .bubble { position: absolute; border-radius: 50%; }
    .b1 { width: 380px; height: 380px; background: rgba(180,210,245,.28); top: -120px; right: -80px; }
    .b2 { width: 260px; height: 260px; background: rgba(200,225,250,.22); bottom: -60px; left: -60px; }
    .b3 { width: 150px; height: 150px; background: rgba(210,230,252,.3); top: 50%; left: 10%; }
    .b4 { width: 90px; height: 90px; background: rgba(160,200,240,.2); bottom: 20%; right: 12%; }
    #dotsCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
    .noise-overlay { position: fixed; inset: 0; background-image: radial-gradient(rgba(0, 90, 170, 0.03) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; z-index: 2; }
    .login-container { position: relative; z-index: 10; width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
    .brand-section { text-align: center; animation: fadeSlideUp 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) both; }
    .icon-ring { display: flex; align-items: center; justify-content: center; }
    .icon-ring > img { width: 200px; margin-bottom: 10px; }
    .hospital-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px); padding: 6px 16px; border-radius: 60px; font-size: 0.7rem; font-weight: 500; color: #0f5b9c; margin-top: 10px; border: 1px solid rgba(0, 112, 201, 0.25); box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
    .glass-card { position: relative; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); border-radius: 32px; border: 1px solid rgba(0, 112, 201, 0.25); box-shadow: 0 36px 64px -20px rgba(0, 50, 110, 0.18); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s ease; animation: fadeSlideUp 0.7s 0.08s both; overflow: hidden; }
    .card-inner { padding: 20px 30px 20px; position: relative; z-index: 1; }
    .form-header { margin-bottom: 35px; text-align: center; }
    .form-header-badge { 
        display: inline-flex; 
        align-items: center; 
        gap: 10px; 
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.8));
        border: 1px solid rgba(30, 130, 220, 0.2);
        padding: 8px 20px;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    .badge-title { 
        font-size: 1.1rem; 
        font-weight: 800; 
        color: #0a3d6b;
        letter-spacing: -0.2px;
    }
    .badge-divider {
        width: 1.5px;
        height: 16px;
        background: rgba(30, 130, 220, 0.2);
    }
    .badge-sub {
        font-size: 0.7rem;
        font-weight: 600;
        color: #1a6bb5;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .badge-sub i { font-size: 0.6rem; color: #2c8ed6; }
    .input-group { margin-bottom: 20px; }
    .input-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 0.8rem; font-weight: 600; color: #1e3a5f; }
    .input-wrapper { position: relative; }
    .input-wrapper i.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #98aec9; transition: color 0.2s; pointer-events: none; z-index: 3; }
    .input-wrapper input { width: 100%; padding: 14px 44px 14px 46px; font-family: 'Prompt', sans-serif; font-size: 0.95rem; font-weight: 400; background: #f9fcfd; border: 1.5px solid #e2edf5; border-radius: 22px; color: #1a2c3e; transition: all 0.2s ease; outline: none; }
    .input-wrapper input:focus { border-color: #2c8ed6; background: #ffffff; box-shadow: 0 0 0 4px rgba(44, 142, 214, 0.12); }
    .input-wrapper input.is-err { border-color: #e65c5c; background: #fff8f8; box-shadow: 0 0 0 3px rgba(230, 92, 92, 0.1); }
    .eye-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1rem; color: #96aec9; cursor: pointer; padding: 8px; }
    .error-msg { display: none; align-items: center; gap: 6px; font-size: 0.7rem; color: #e65c5c; margin-top: 6px; margin-left: 12px; }
    .error-msg.show { display: flex; }
    .extra-options { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 28px 0; }
    .checkbox-custom { display: flex; align-items: center; gap: 8px; cursor: pointer; }
    .checkbox-custom input { display: none; }
    .checkmark { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid #cbdde9; background: #f9fcfe; display: inline-flex; align-items: center; justify-content: center; }
    .checkmark i { font-size: 0.65rem; color: white; opacity: 0; }
    .checkbox-custom input:checked + .checkmark { background: #005baa; border-color: #005baa; box-shadow: 0 4px 10px rgba(0,91,170,.14); }
    .checkbox-custom input:checked + .checkmark i { opacity: 1; }
    .checkbox-custom span { font-size: 0.78rem; color: #2a577b; font-weight: 500; }
    .forgot-link { font-size: 0.78rem; font-weight: 500; color: #1f73c2; text-decoration: none; }
    .login-btn { width: 100%; background: #005baa; border: 1px solid #005baa; padding: 15px 20px; border-radius: 34px; font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 0.96rem; color: white; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1); }
    .login-btn .btn-spinner { display: none; }
    .login-btn.loading .btn-text { display: none; }
    .login-btn.loading .btn-spinner { display: flex; align-items: center; gap: 8px; }
    .divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; }
    .divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #caddf0, transparent); }
    .divider-text { font-size: 0.7rem; color: #8aa1bb; }
    .line-auth-btn { width: 100%; background: #fefefe; border: 1.5px solid #e2edf5; padding: 13px; border-radius: 34px; font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 0.86rem; color: #1f3a57; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: all 0.2s; }
    .line-auth-btn i { font-size: 1.35rem; color: #06c755; }
    .footer-note { text-align: center; font-size: 0.65rem; color: #7d98b3; margin-top: 14px; }
    @keyframes fadeSlideUp { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }
    
    /* ── SweetAlert2 Theme ── */
    .modern-swal-popup { font-family:'Prompt',sans-serif !important; border-radius:28px !important; padding:1.2rem !important; box-shadow:0 25px 40px -12px rgba(0,0,0,0.25) !important; border:1px solid #dcebf5 !important; }
    .modern-swal-title  { font-weight:700 !important; font-size:1.3rem !important; color:#1f4b7a !important; }
    .swal2-input { font-family:'Prompt',sans-serif !important; border-radius:40px !important; border:1.5px solid #d3e2ef !important; padding:12px 20px !important; }
