    .reg-wrap { max-width: 460px; margin: 40px auto; }
    .reg-card { padding: 0; border: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; background: var(--card-bg); backdrop-filter: blur(var(--glass-blur)); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
    .reg-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, rgba(255,214,0,0.08), transparent 50%), radial-gradient(ellipse at 80% 100%, rgba(124,77,255,0.06), transparent 50%); pointer-events: none; }
    .reg-top { padding: 28px 24px 14px; position: relative; z-index: 1; }
    .reg-logo { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 30px; color: white; box-shadow: 0 8px 32px var(--primary-glow); margin: 0 auto 12px; position: relative; overflow: hidden; }
    .reg-title { font-weight: 800; color: var(--secondary); margin-bottom: 4px; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.5px; }
    .reg-sub { color: var(--text-light); font-size: 0.88rem; }
    .reg-body { padding: 14px 24px 28px; position: relative; z-index: 1; text-align: start; }

    .login-input-wrap { position: relative; margin-bottom: 14px; text-align: left; }
    .login-input-wrap .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1rem; pointer-events: none; transition: color 0.3s; }
    .login-input-wrap .input-icon-button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1rem; padding: 8px; border-radius: 8px; transition: color 0.3s; z-index: 2; }
    .login-input-wrap .input-icon-button:hover { color: var(--primary); }
    .login-field { width: 100%; padding: 13px 16px 13px 42px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.92rem; transition: all 0.3s; background: var(--card-bg); color: var(--text); }
    .login-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(225,6,0,0.1), 0 0 20px var(--primary-glow); }
    .login-field::placeholder { color: var(--text-light); }
    .login-field.password-toggle { padding-right: 44px; }

    /* ===== RTL fixes ===== */
    [dir="rtl"] .login-input-wrap { text-align: right; }
    [dir="rtl"] .login-input-wrap .bi { left: auto; right: 14px; }
    [dir="rtl"] .login-input-wrap .input-icon-button { right: auto; left: 8px; }
    [dir="rtl"] .login-field { padding: 13px 42px 13px 16px; }
    [dir="rtl"] .login-field.password-toggle { padding-right: 42px; padding-left: 44px; }

    /* ===== Phone input group ===== */
    .phone-input-group { display: flex; align-items: stretch; }
    .phone-prefix {
        display: flex; align-items: center; gap: 5px;
        padding: 13px 14px;
        border: 1.5px solid var(--border);
        border-right: none;
        border-radius: var(--radius) 0 0 var(--radius);
        background: linear-gradient(135deg, #FDF6E7, #F6E9C8);
        font-weight: 800; font-size: 0.9rem; color: var(--primary-dark);
        white-space: nowrap;
    }
    .phone-input-group .phone-input { border-radius: 0 var(--radius) var(--radius) 0; padding: 13px 16px; direction: ltr; }
    [dir="rtl"] .phone-input-group { flex-direction: row-reverse; }
    [dir="rtl"] .phone-prefix { border-right: 1.5px solid var(--border); border-left: none; border-radius: 0 var(--radius) var(--radius) 0; }
    [dir="rtl"] .phone-input-group .phone-input { border-radius: var(--radius) 0 0 var(--radius); padding: 13px 16px; }

    /* ===== Phone hint ===== */
    .phone-hint {
        display: flex; flex-direction: column; gap: 9px;
        font-size: 0.78rem; color: var(--text-secondary);
        text-align: start; margin-top: 10px;
        background: linear-gradient(135deg, rgba(255,214,0,0.08), rgba(124,77,255,0.05));
        border: 1px dashed rgba(255,214,0,0.45);
        border-radius: 12px; padding: 11px 13px;
        transition: all 0.3s;
    }
    .phone-hint-main { display: flex; align-items: center; gap: 8px; font-weight: 600; }
    .phone-hint-main i { color: var(--primary); font-size: 1rem; }
    .phone-hint-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
    .chip {
        display: inline-flex; align-items: center; gap: 4px;
        font-size: 0.72rem; font-weight: 700;
        padding: 4px 10px; border-radius: 999px;
        direction: ltr; unicode-bidi: isolate;
    }
    .chip.wrong { background: rgba(255,23,68,0.08); color: #C62828; text-decoration: line-through; }
    .chip.right { background: rgba(0,200,83,0.12); color: #1B5E20; text-decoration: none; }
    .phone-hint.valid {
        background: rgba(0,200,83,0.08);
        border-color: rgba(0,200,83,0.45);
        color: #2E7D32;
        animation: hintPop 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    .phone-hint.valid .phone-hint-main i { color: #00C853; }
    @keyframes hintPop { from { transform: scale(0.95); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }

    .reg-btn { width: 100%; padding: 14px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 4px 20px var(--primary-glow); font-family: inherit; position: relative; overflow: hidden; }
    .reg-btn:hover { box-shadow: 0 8px 32px var(--primary-glow); transform: translateY(-2px); }
    .reg-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--border); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--text); font-weight: 600; background: white; margin-bottom: 16px; transition: all 0.3s; }
    .reg-google:hover { border-color: #4285F4; box-shadow: 0 4px 16px rgba(66,133,244,0.2); }
    .reg-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
    .reg-divider::before, .reg-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .reg-divider span { color: var(--text-light); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
    .reg-footer { text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
    .reg-footer a { color: var(--primary); font-weight: 700; text-decoration: none; }
    .reg-error { display: none; background: rgba(255,82,82,0.1); color: #D50000; padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; margin-bottom: 14px; text-align: start; border: 1px solid rgba(255,82,82,0.2); }
