* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: #0f0f1a;
            color: #f5f5ff;
            min-height: 100vh;
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
        }
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
            pointer-events: none;
            z-index: -1;
        }
        .login-container { width: 100%; max-width: 440px; padding: 0 24px; }
        .login-card {
            background: rgba(25, 25, 45, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 48px 40px 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.1);
            animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes cardFadeIn {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .login-header { text-align: center; margin-bottom: 32px; }
        .login-title { 
            font-size: 28px; 
            font-weight: 700; 
            color: #f5f5ff; 
            margin-bottom: 10px;
            background: linear-gradient(135deg, #f5f5ff, #a78bfa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .login-sub { font-size: 14px; color: #b8b8d0; }
        .login-sub a { color: #8b5cf6; text-decoration: none; font-weight: 500; }
        .login-sub a:hover { color: #a78bfa; text-decoration: underline; }

        .login-tabs {
            display: flex; justify-content: center; gap: 40px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 32px;
            padding-bottom: 0; position: relative;
        }
        .login-tab {
            font-size: 15px; color: #7a7a9a; cursor: pointer;
            padding-bottom: 14px; transition: all 0.3s;
            user-select: none; position: relative;
            font-weight: 500;
        }
        .login-tab:hover { color: #b8b8d0; }
        .login-tab.active { color: #8b5cf6; font-weight: 600; }
        .login-tab.active::after {
            content: ''; position: absolute;
            bottom: -1px; left: 50%; transform: translateX(-50%);
            width: 40px; height: 3px; 
            background: linear-gradient(90deg, #8b5cf6, #06b6d4); 
            border-radius: 2px;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
        }

        .form-group { margin-bottom: 20px; }
        .form-input {
            width: 100%; padding: 14px 16px;
            background: rgba(255, 255, 255, 0.03); 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            border-radius: 12px;
            color: #f5f5ff; font-size: 15px; outline: none; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
        }
        .form-input:focus { 
            border-color: #8b5cf6; 
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
        }
        .form-input::placeholder { color: #5a5a7a; }
        .form-input.phone-input { letter-spacing: 1px; }
        .form-input:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 30px rgba(25, 25, 45, 0.85) inset;
            -webkit-text-fill-color: #f5f5ff;
        }

        .input-row { display: flex; gap: 12px; }
        .input-row .form-input { flex: 1; }

        .btn-sms {
            padding: 14px 20px; border-radius: 12px; font-size: 13px;
            font-weight: 600; cursor: pointer; border: 1px solid rgba(139, 92, 246, 0.4);
            background: rgba(139, 92, 246, 0.1); color: #8b5cf6;
            white-space: nowrap; transition: all 0.3s; min-width: 120px;
            backdrop-filter: blur(10px);
        }
        .btn-sms:hover:not(:disabled) { 
            background: rgba(139, 92, 246, 0.2); 
            border-color: #8b5cf6;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
        }
        .btn-sms:disabled { 
            border-color: rgba(255, 255, 255, 0.1); 
            color: #5a5a7a; 
            cursor: not-allowed; 
        }
        .btn-sms.counting { 
            color: #f59e0b; 
            border-color: rgba(245, 158, 11, 0.4);
            background: rgba(245, 158, 11, 0.1);
        }

        .btn-login {
            width: 100%; padding: 15px;
            background: linear-gradient(135deg, #8b5cf6, #06b6d4); 
            border: none; border-radius: 12px;
            color: #fff; font-size: 16px; font-weight: 600;
            cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
            margin-top: 8px;
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
        }
        .btn-login:hover:not(:disabled) { 
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
        }
        .btn-login:active:not(:disabled) { transform: translateY(0); }
        .btn-login:disabled { 
            opacity: 0.5; 
            cursor: not-allowed; 
            box-shadow: none;
        }

        .login-extra {
            display: flex; justify-content: flex-end; margin-top: 16px;
        }
        .login-extra a { font-size: 13px; color: #7a7a9a; text-decoration: none; }
        .login-extra a:hover { color: #8b5cf6; }

        .msg {
            padding: 12px 16px; border-radius: 12px;
            margin-bottom: 20px; font-size: 13px;
            display: none; align-items: center; gap: 10px;
            backdrop-filter: blur(10px);
        }
        .msg.show { display: flex; animation: msgFadeIn 0.3s ease; }
        @keyframes msgFadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .msg.error { 
            background: rgba(239, 68, 68, 0.1); 
            border: 1px solid rgba(239, 68, 68, 0.3); 
            color: #ef4444; 
        }
        .msg.success { 
            background: rgba(16, 185, 129, 0.1); 
            border: 1px solid rgba(16, 185, 129, 0.3); 
            color: #10b981; 
        }

        .tab-panel { display: none; }
        .tab-panel.active { display: block; animation: panelFadeIn 0.3s ease; }
        @keyframes panelFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .login-footer {
            text-align: center; margin-top: 28px;
            color: #5a5a7a; font-size: 12px;
        }