﻿
        body.hm-auth-standalone {
            margin: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f2f0ff;
            background-image: url('img/cover.png');
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            padding: 20px;
        }
        .hm-auth-shell {
            width: 100%;
            max-width: 420px;
            padding: 0;
        }
        .hm-auth-standalone .hm-panel {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
            padding: 0;
            overflow: hidden;
            border: none;
        }
        .hm-auth-standalone .hm-panel-header {
            padding: 20px 24px 12px;
            text-align: center;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        }
        .hm-auth-standalone .hm-panel-body {
            padding: 18px 24px 24px;
        }
        .hm-app-title {
            text-align: center;
            font-weight: 900;
            margin: 0;
            font-size: 1.75rem;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 200% auto;
            animation: gradientText 3s ease infinite;
        }
        @keyframes gradientText {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }
        .hm-app-subtitle {
            text-align: center;
            color: #64748b;
            font-size: 0.85rem;
            margin: 8px 0 0;
            font-size: 0.9rem;
            font-weight: 400;
        }
        .hm-auth-standalone .hm-form-grid {
            gap: 12px;
            margin-bottom: 0;
        }
        .hm-auth-standalone .hm-field {
            margin-bottom: 0;
        }
        .hm-auth-standalone .hm-field label {
            display: block;
            font-weight: 500;
            font-size: 0.875rem;
            color: #334155;
            margin-bottom: 6px;
            text-transform: none;
            letter-spacing: 0;
        }
        .hm-auth-standalone .hm-input {
            width: 100%;
            padding: 9px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.2s ease;
            background: #ffffff;
            box-sizing: border-box;
        }
        .hm-auth-standalone .hm-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        .hm-input-icon-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }
        .hm-input-icon-wrap .fa-solid {
            position: absolute;
            left: 12px;
            color: #64748b;
            font-size: 0.9rem;
            z-index: 2;
            pointer-events: none;
            transition: color 0.2s ease;
        }
        .hm-input-icon-wrap .hm-input {
            position: relative;
            z-index: 1;
        }
        .hm-input-with-icon {
            padding-left: 38px !important;
        }
        .hm-input-icon-wrap:focus-within .fa-solid {
            color: #667eea;
        }
        .hm-password-wrap {
            position: relative;
            display: flex;
            align-items: stretch;
            width: 100%;
        }
        .hm-password-input {
            padding-right: 50px;
        }
        .hm-eye-toggle {
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            height: 36px;
            width: 36px;
            border: none;
            background: transparent;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #64748b;
            padding: 0;
            z-index: 3;
        }
        .hm-eye-toggle:hover {
            background: rgba(102, 126, 234, 0.08);
            color: #667eea;
        }
        .hm-eye-toggle:active {
            transform: translateY(-50%) scale(0.95);
        }
        .hm-eye-toggle:focus-visible {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }
        .hm-eye-icon {
            width: 20px;
            height: 20px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            opacity: 0.6;
            transition: opacity 0.2s ease;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>");
        }
        .hm-eye-toggle:hover .hm-eye-icon {
            opacity: 1;
        }
        .hm-eye-toggle.is-active .hm-eye-icon {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
        }
        .hm-field-hint {
            display: block;
            margin-top: 8px;
            font-size: 0.8rem;
            color: #94a3b8;
            line-height: 1.4;
        }
        .hm-auth-standalone .hm-top-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 16px;
            margin-bottom: 14px;
        }
        .hm-auth-standalone .hm-primary-btn {
            width: 100%;
            padding: 12px 18px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .hm-auth-standalone .hm-primary-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }
        .hm-auth-standalone .hm-primary-btn:active {
            transform: translateY(0);
        }
        .hm-link-btn {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 18px;
            border: 2px solid #e2e8f0;
            background: #ffffff;
            font-weight: 600;
            color: #667eea;
            text-decoration: none;
            border-radius: 12px;
            transition: all 0.2s ease;
            font-size: 1rem;
        }
        .hm-link-btn:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.05);
            transform: translateY(-1px);
        }
        .hm-auth-footer {
            text-align: center;
            color: #64748b;
            font-size: 0.875rem;
            margin: 0;
            line-height: 1.4;
        }
        .hm-auth-footer a {
            color: #667eea;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .hm-auth-footer a:hover {
            color: #764ba2;
            text-decoration: underline;
        }
        .hm-auth-footer + .hm-auth-footer {
            margin-top: 8px;
        }
        .hm-status-callout {
            margin-top: 16px;
            padding: 0;
            min-height: 0;
            border: none;
            background: transparent;
            box-shadow: none;
            display: none;
            border-radius: 12px;
            font-size: 0.875rem;
        }
        .hm-status-callout:not(:empty) {
            display: block;
            padding: 12px 16px;
            margin-top: 16px;
        }
        .hm-status-callout.info:not(:empty) {
            background: rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.2);
            color: #4c51bf;
        }
        .hm-status-callout.error:not(:empty) {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
        }
        .hm-status-callout.success:not(:empty) {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            color: #16a34a;
        }
        .hm-btn-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            margin-left: 8px;
            border: 2px solid rgba(255,255,255,0.8);
            border-top-color: transparent;
            border-radius: 50%;
            animation: hmSpin 0.8s linear infinite;
            vertical-align: middle;
        }
        @keyframes hmSpin {
            to { transform: rotate(360deg); }
        }
        .hm-auth-standalone .hm-status-dot {
            display: none;
        }
        .hm-remember {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0 12px;
            color: #334155;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
            /* Mobile Responsive Styles - Native App Look */
        @media (max-width: 768px) {
            body.hm-auth-standalone {
                padding: 0 !important;
                background: #ffffff !important;
                align-items: flex-start;
                overscroll-behavior-y: none; /* Prevent rubber-banding */
            }

            /* Prevent text selection to mimic native UI */
            .hm-app-title, .hm-app-subtitle, label, .hm-auth-footer, .hm-remember {
                -webkit-user-select: none;
                user-select: none;
            }

            .hm-auth-shell {
                max-width: 100% !important;
                height: 100%;
            }

            .hm-auth-standalone .hm-panel {
                border-radius: 12px !important;
                box-shadow: none !important;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
            }

            .hm-auth-standalone .hm-panel-header {
                padding: 40px 24px 20px !important; /* More top padding for status bar feel */
                background: #ffffff !important; /* Clean header */
            }

            .hm-auth-standalone .hm-panel-body {
                padding: 0 24px 30px !important;
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center; /* Center content vertically */
            }

            /* Typography */
            .hm-app-title, 
            .hm-app-subtitle,
            .hm-auth-standalone .hm-field label,
            .hm-auth-standalone .hm-input,
            .hm-auth-standalone .hm-input::placeholder,
            .hm-primary-btn,
            .hm-link-btn,
            .hm-auth-footer,
            .hm-remember,
            .hm-field-hint {
                font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
            }

            .hm-app-title {
                font-size: 1.8rem !important;
                margin-bottom: 8px !important;
                letter-spacing: -0.5px;
            }

            .hm-app-subtitle {
                font-size: 1rem !important;
                color: #64748b;
            }

            .hm-auth-standalone .hm-field {
                margin-bottom: 24px !important;
            }

            .hm-auth-standalone .hm-field label {
                font-size: 0.9rem !important;
                color: #64748b;
                margin-bottom: 8px;
                font-weight: 500;
                text-transform: none;
                letter-spacing: 0;
            }

            .hm-auth-standalone .hm-input {
                padding: 16px 16px !important;
                font-size: 17px !important; /* Prevents iOS zoom */
                border-radius: 16px;
                background-color: #f1f5f9;
                border: 2px solid transparent;
                transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .hm-auth-standalone .hm-input-with-icon {
                padding-left: 48px !important;
            }

            .hm-auth-standalone .hm-password-input {
                padding-right: 56px !important;
            }

            .hm-auth-standalone .hm-input-icon-wrap .fa-solid {
                left: 18px;
                font-size: 1rem;
            }
            
            .hm-auth-standalone .hm-input:focus {
                background-color: #fff;
                border-color: #667eea;
                box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
                transform: translateY(-1px);
            }

            .hm-remember {
                margin: 10px 0 30px;
                font-size: 1rem;
                color: #475569;
            }

            /* Custom Checkbox for Mobile */
            .hm-remember input[type="checkbox"] {
                width: 20px;
                height: 20px;
                margin-right: 10px;
                accent-color: #667eea;
            }

            .hm-auth-standalone .hm-top-buttons {
                margin-top: 0; /* Removed margin-top: auto to fix gap */
                gap: 16px;
            }

            .hm-auth-standalone .hm-primary-btn {
                padding: 18px !important;
                font-size: 1.1rem !important;
                border-radius: 16px;
                box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
                margin-bottom: 0;
            }

            .hm-auth-standalone .hm-primary-btn:active {
                transform: scale(0.98);
            }

            .hm-link-btn {
                padding: 16px !important;
                font-size: 1rem !important;
                border: 2px solid #f1f5f9;
                background: transparent;
                color: #64748b;
                border-radius: 16px;
            }
            
            .hm-link-btn:active {
                background-color: #f1f5f9;
            }

            .hm-auth-footer {
                margin-top: 30px;
                padding-bottom: 10px;
                opacity: 0.8;
            }
            
            /* Slide up animation for content */
            .hm-panel-body > * {
                animation: slideUpFade 0.6s ease-out forwards;
                opacity: 0;
                transform: translateY(20px);
            }
            
            .hm-panel-body > *:nth-child(1) { animation-delay: 0.1s; }
            .hm-panel-body > *:nth-child(2) { animation-delay: 0.2s; }
            .hm-panel-body > *:nth-child(3) { animation-delay: 0.3s; }
        }
        
        @keyframes slideUpFade {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    
