:root {
            --primary: #0066cc;
            --primary-dark: #0052a3;
            --white: #ffffff;
            --gray-100: #f9fafb;
            --gray-200: #f3f4f6;
            --gray-300: #e5e7eb;
            --gray-500: #6b7280;
            --gray-700: #374151;
            --error: #dc2626;
            --success: #10b981;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .login-container {
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 420px;
            overflow: hidden;
        }
        
        .login-header {
            background: linear-gradient(135deg, var(--primary), #4f46e5);
            padding: 32px 32px 24px;
            text-align: center;
            color: white;
        }
        
        .login-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 6px;
        }
        
        .login-subtitle {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .login-body {
            padding: 32px;
        }

        .alert-box {
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 18px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert-box.success {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #86efac;
        }

        .alert-box.error {
            background: #fee2e2;
            color: #b91c1c;
            border: 1px solid #fca5a5;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--gray-700);
            margin-bottom: 8px;
            display: block;
        }
        
        .input-wrapper {
            position: relative;
        }
        
        .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-500);
            font-size: 1.1rem;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 12px 12px 44px;
            border: 1.5px solid var(--gray-300);
            border-radius: 10px;
            font-size: 1rem;
            color: var(--gray-700);
            transition: all 0.2s;
            font-family: inherit;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
        }
        
        .form-control.is-invalid {
            border-color: var(--error);
        }
        
        .form-control.is-valid {
            border-color: var(--success);
        }
        
        #countryCode {
            padding-left: 10px;
            padding-right: 24px;
            text-align: center;
            text-align-last: center;
            background-position: right 8px center;
        }

        #phoneNumber {
            padding-left: 10px;
            padding-right: 10px;
            text-align: center;
        }

        #phoneNumber::placeholder {
            text-align: center;
        }
        
        .phone-status {
            font-size: 0.85rem;
            margin-top: 8px;
            display: block;
        }
        .phone-status.error { color: #ef4444; }
        .phone-status.success { color: #10b981; }
        
        .btn-primary {
            width: 100%;
            background: linear-gradient(135deg, var(--primary), #4f46e5);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
        }
        
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .divider {
            text-align: center;
            margin: 24px 0;
            position: relative;
        }
        
        .divider::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            width: 100%;
            height: 1px;
            background: var(--gray-300);
        }
        
        .divider-text {
            background: white;
            padding: 0 16px;
            position: relative;
            color: var(--gray-500);
            font-size: 0.85rem;
        }
        
        .info-box {
            font-size: 0.85rem;
            color: var(--gray-700);
            text-align: center;
        }
        
        .phone-input-group {
            display: flex;
            gap: 8px;
        }
        
        .country-select {
            flex: 0 0 auto;
            width: 140px;
            padding: 12px 8px 12px 44px;
            border: 1.5px solid var(--gray-300);
            border-radius: 10px;
            font-size: 1rem;
            color: var(--gray-700);
            transition: all 0.2s;
            background: white;
            cursor: pointer;
        }
        
        .country-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
        }
        
        .phone-input-wrapper {
            flex: 1;
            position: relative;
        }
        
        .phone-input-wrapper .form-control {
            padding-left: 44px;
        }
        
        .phone-input-wrapper .input-icon {
            left: 14px;
        }
