
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { background: var(--site-page-bg, #fff5ee); }
        body { font-family: 'Cairo', 'Inter', sans-serif; background: transparent; color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }
        .auth-header { position: fixed; top: 0; left: 0; right: 0; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; z-index: 50; background: linear-gradient(155deg, rgba(255,255,255,0.85) 0%, rgba(255,245,238,0.7) 100%); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: none; border-bottom: 1px solid rgba(0,0,0,0.06); box-shadow: none; }
        .auth-header-right { display: flex; align-items: center; gap: 1rem; }
        .back-btn-minimal { width: 44px; height: 44px; min-width: 44px; min-height: 44px; background: #ffffff; border: 1px solid var(--control-border); border-radius: var(--radius-control); color: var(--text-primary); text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 300; transition: background-color var(--control-ease), border-color var(--control-ease); }
        .back-btn-minimal:hover { border-color: var(--control-border-strong); background: var(--control-hover-bg); }
        .auth-brand { font-size: 1.25rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.35rem; }
        .auth-brand-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
        .auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem 2rem; min-height: 100vh; position: relative; z-index: 1; }
        .auth-box {
            width: 100%;
            max-width: 400px;
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 24px;
            padding: 2.25rem 2rem;
            box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }
        .auth-tabs { display: flex; background: #f1ece7; border: 1px solid var(--control-border); border-radius: var(--radius-control); padding: 3px; margin-bottom: 2rem; box-shadow: none; }
        .auth-tab { flex: 1; padding: 0.85rem 1rem; background: transparent; border: none; color: var(--text-secondary); font-weight: 600; cursor: pointer; border-radius: 7px; transition: background-color var(--control-ease), color var(--control-ease); font-family: inherit; font-size: 0.95rem; min-height: 44px; }
        .auth-tab.active { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.06); }
        .auth-form { display: block; }
        .form-section { display: none; }
        .form-section.active { display: block; }
        .form-group { margin-bottom: 1rem; }
        .form-group input { width: 100%; padding: 1rem 1.2rem; background: #faf9f8; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; color: var(--text-primary); font-family: inherit; font-size: 0.95rem; transition: all 0.3s; min-height: 52px; box-shadow: none; }
        .form-group input:focus { outline: none; border-color: rgba(234,59,6,0.7); background: #ffffff; box-shadow: 0 0 0 2px rgba(234,59,6,0.15); }
        .form-group input::placeholder { color: #4b5563; }
        .phone-wrap { display: flex; align-items: stretch; direction: ltr; background: #faf9f8; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; overflow: hidden; transition: all 0.3s; }
        .phone-wrap:focus-within { border-color: rgba(234,59,6,0.7); background: #ffffff; box-shadow: 0 0 0 2px rgba(234,59,6,0.15); }
        .phone-code-wrap { position: relative; width: 66px; flex-shrink: 0; }
        .phone-prefix { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: none; opacity: 0; cursor: pointer; }
        .phone-prefix-display { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; padding: 0 1.15rem 0 0.65rem; background: #efece9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E") no-repeat right 0.3rem center / 11px; border-right: 1px solid rgba(0, 0, 0, 0.1); color: var(--text-secondary); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
        .phone-wrap:focus-within .phone-prefix-display { background-color: #e5e1dc; }
        .phone-wrap input { flex: 1; min-width: 0; border: none; background: transparent; padding: 1rem 1.2rem; min-height: 52px; font-family: inherit; font-size: 0.95rem; text-align: left; color: var(--text-primary); box-shadow: none; }
        .phone-wrap input:focus { outline: none; }
        .phone-wrap input::placeholder { color: #4b5563; }
        .password-wrap { position: relative; display: block; }
        .password-wrap input { padding-inline-end: 3rem; }
        .password-toggle { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-secondary); cursor: pointer; border-radius: 8px; transition: color 0.2s, background 0.2s; }
        .password-toggle:hover { color: var(--text-primary); background: rgba(0,0,0,0.05); }
        .password-toggle svg { width: 20px; height: 20px; pointer-events: none; }
        .submit-btn { width: 100%; padding: 1rem 1.5rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-control); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background-color var(--control-ease), border-color var(--control-ease); font-family: inherit; margin-top: 0.5rem; min-height: 54px; }
        .submit-btn:hover { background: var(--primary-dark); }
        .submit-btn:active:not(:disabled) { transform: translateY(1px); }
        .submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
        .forgot-link-wrap { margin-top: 1rem; text-align: center; }
        .forgot-link { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.3rem 0.5rem; }
        .forgot-link:hover { color: var(--text-primary); }
        .auth-divider { display: none; align-items: center; gap: 0.75rem; margin: 1.15rem 0 0.85rem; color: var(--text-secondary); font-size: 0.82rem; }
        .auth-divider.is-visible { display: flex; }
        .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.1); }
        .google-btn-shell,
        .apple-btn-shell,
        .microsoft-btn-shell {
            display: none;
            position: relative;
            width: 100%;
            margin: 0.15rem 0 0.35rem;
        }
        .google-btn-shell.is-visible,
        .apple-btn-shell.is-visible,
        .microsoft-btn-shell.is-visible { display: block; }
        .google-custom-btn,
        .apple-custom-btn,
        .microsoft-custom-btn {
            width: 100%;
            min-height: 52px;
            padding: 0.85rem 1.1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.7rem;
            border-radius: var(--radius-control);
            border: 1px solid rgba(0,0,0,0.12);
            background: #ffffff;
            color: #1f2937;
            font-family: inherit;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
        }
        .google-custom-btn:hover,
        .apple-custom-btn:hover,
        .microsoft-custom-btn:hover {
            background: #f5f5f5;
            border-color: rgba(0,0,0,0.2);
        }
        .apple-custom-btn {
            background: #000;
            border-color: #000;
            color: #fff;
        }
        .apple-custom-btn:hover {
            background: #1a1a1a;
        }
        .microsoft-custom-btn {
            background: #ffffff;
            border-color: rgba(0,0,0,0.12);
        }
        .microsoft-custom-btn:hover {
            background: #f5f5f5;
        }
        .google-custom-btn .g-logo,
        .apple-custom-btn .a-logo,
        .microsoft-custom-btn .m-logo {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            display: block;
        }
        /* Real GIS button stays off-screen so its locale chrome never bleeds into the UI. */
        .google-gsi-host {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
            opacity: 0;
            pointer-events: none;
        }
        .forgot-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
        .message { padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; display: none; min-height: 2.5rem; }
        .message.error { display: block; background: rgba(239,68,68,0.1); border: 1px solid var(--danger); color: #b91c1c; font-weight: 500; }
        .message.success { display: block; background: rgba(16,185,129,0.1); border: 1px solid var(--success); color: #047857; }
        .top-banner-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 99; pointer-events: none; }
        .top-banner-wrap a { pointer-events: auto; }
        .top-banner { padding: 8px 1rem; text-align: center; background: linear-gradient(135deg, rgba(234,59,6,0.95), rgba(199,50,5,0.9)); color: white; font-weight: 700; font-size: 0.9rem; text-decoration: none; display: block; }
        body.has-top-banner .auth-header { top: 40px; }
        body.has-top-banner .auth-container { padding-top: 8rem; }
        @media (max-width: 480px) { .auth-box { max-width: 100%; padding: 1.75rem 1.25rem; border-radius: 20px; } .auth-tab { font-size: 0.88rem; min-height: 44px; } .form-group input, .submit-btn { min-height: 48px; } }
        .klk-captcha { display: none; justify-content: center; margin: 4px 0 14px; min-height: 65px; }
    