Docs

Main site

Installation Browser support Extend config MCP server
Validation Page speed testing Responsive design
Accordion Aspect Ratio Avatar Badge Banner Bento Grid Blockquote Breadcrumbs Button Callout Card Drawer Dropdown Link Modal Navbar Navblock Pagination Popover Progress Separator Tabs Timeline Toast Tooltip
Checkbox Datepicker File upload Form field Input Label OTP Radio Range Select Textarea Toggle
Header Footer
Accordion Auth Checkbox & Radio Content Drawers Features Modals Statistics & Metrics Teams
Address Contact number Currency symbol Date Emirates ID Name
Close
Home Documentation Blocks Auth

Auth

Authentication blocks for signing people in. UAE PASS is always the primary way to sign in, and other options appear only where an entity has been approved to offer them.

Default Login Example

The default login panel: the entity logo, a single "Sign in with UAE PASS" action and a link to create a UAE PASS account. Use it unless you have explicit approval to offer another way to sign in.

Get code

Default Login Example

HTML
<section aria-labelledby="sign-in-heading" class="w-full px-4 sm:w-auto sm:px-0">
  <aegov-card appearance="solid" variant="primary" border-width="1" class="mx-auto block w-full sm:w-104">
    <div class="flex min-h-120 flex-col justify-between gap-10 text-center xl:min-h-128">
      <div role="img" aria-label="Logo" class="relative mx-auto flex h-16 w-44 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-aeblack-50 sm:h-20 sm:w-52">
        <svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
        <span aria-hidden="true" class="relative rounded bg-aeblack-50 px-2 text-base font-semibold text-aeblack-500">Logo</span>
      </div>

      <div class="space-y-4">
        <h2 id="sign-in-heading" class="sr-only">Sign in</h2>
        <aegov-link href="#uae-pass" variant="neutral-max" size="sm lg:base xl:lg">
          <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><path d="M50.69,184.92A127.52,127.52,0,0,0,64,128a63.85,63.85,0,0,1,24-50" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M128,128a191.11,191.11,0,0,1-24,93" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M96,128a32,32,0,0,1,64,0,223.12,223.12,0,0,1-21.28,95.41" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M218.56,184A289.45,289.45,0,0,0,224,128a96,96,0,0,0-192,0,95.8,95.8,0,0,1-5.47,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M92.81,160a158.92,158.92,0,0,1-18.12,47.84" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M120,64.5a66,66,0,0,1,8-.49,64,64,0,0,1,64,64,259.86,259.86,0,0,1-2,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M183.94,192q-2.28,8.88-5.18,17.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
          Sign in with UAE PASS
        </aegov-link>
        <p class="mx-auto max-w-64 text-sm text-aeblack-700 pt-2">A single trusted digital identity for all citizens, residents and visitors.</p>
      </div>

      <p class="text-sm text-aeblack-800">Need a UAE PASS account? <a href="https://uaepass.ae" class="font-semibold underline underline-offset-1">Create an account</a></p>
    </div>
  </aegov-card>
</section>

Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.

Alternate Login Example

The default login panel with a fallback for approved entities. UAE PASS stays the only prominent action, and a quiet "Use other login option" link swaps the panel to a username and password form with a warning that the method is being discontinued and a clear way back to UAE PASS.

Get code

Alternate Login Example

HTML
<section aria-label="Sign in" data-login class="w-full px-4 sm:w-auto sm:px-0">
  <aegov-card appearance="solid" variant="primary" border-width="1" class="mx-auto block w-full sm:w-104">
    <div class="flex min-h-140 flex-col gap-8 text-center">
      <div role="img" aria-label="Logo" class="relative mx-auto flex h-16 w-44 shrink-0 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-aeblack-50 sm:h-20 sm:w-52">
        <svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
        <span aria-hidden="true" class="relative rounded bg-aeblack-50 px-2 text-base font-semibold text-aeblack-500">Logo</span>
      </div>

      <div data-login-view="uaepass" class="flex grow flex-col justify-between gap-10 motion-safe:transition-opacity motion-safe:duration-300 motion-safe:starting:opacity-0">
        <div class="space-y-4 pt-10">
          <h2 tabindex="-1" class="sr-only">Sign in with UAE PASS</h2>
          <aegov-link href="#uae-pass" variant="neutral-max" size="sm lg:base xl:lg">
            <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><path d="M50.69,184.92A127.52,127.52,0,0,0,64,128a63.85,63.85,0,0,1,24-50" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M128,128a191.11,191.11,0,0,1-24,93" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M96,128a32,32,0,0,1,64,0,223.12,223.12,0,0,1-21.28,95.41" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M218.56,184A289.45,289.45,0,0,0,224,128a96,96,0,0,0-192,0,95.8,95.8,0,0,1-5.47,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M92.81,160a158.92,158.92,0,0,1-18.12,47.84" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M120,64.5a66,66,0,0,1,8-.49,64,64,0,0,1,64,64,259.86,259.86,0,0,1-2,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M183.94,192q-2.28,8.88-5.18,17.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
            Sign in with UAE PASS
          </aegov-link>
          <p class="mx-auto max-w-64 text-sm text-aeblack-700 pt-2">A single trusted digital identity for all citizens, residents and visitors.</p>
        </div>

        <div class="space-y-4">
          <p class="text-sm text-aeblack-800">Need a UAE PASS account? <a href="https://uaepass.ae" class="font-semibold underline underline-offset-2">Create an account</a></p>
          <div class="border-t border-aeblack-100 pt-3">
            <button type="button" data-login-show="password" class="cursor-pointer rounded px-1 text-sm text-aeblack-600 underline underline-offset-2 hover:text-aeblack-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500">Use other login option</button>
          </div>
        </div>
      </div>

      <div data-login-view="password" hidden class="flex grow flex-col justify-between gap-6 text-start motion-safe:transition-opacity motion-safe:duration-300 motion-safe:starting:opacity-0">
        <div class="space-y-5">
          <div class="space-y-1 text-center">
            <h2 tabindex="-1" class="text-h5 font-semibold text-aeblack-800 focus:outline-none">Sign in with your username</h2>
            <p class="text-sm text-aeblack-600">For accounts created before UAE PASS.</p>
          </div>

          <aegov-callout variant="warning" appearance="solid" size="sm" is-dismissible="true" class="block">
            This login method will be discontinued soon. You must switch to the use of UAE PASS.
          </aegov-callout>

          <form data-login-form action="#" method="post" novalidate class="space-y-4">
            <aegov-form-field>
              <aegov-label>Username</aegov-label>
              <aegov-input name="username" autocomplete="username" is-required="true" data-required-message="Enter your username"></aegov-input>
            </aegov-form-field>
            <aegov-form-field>
              <aegov-label>Password</aegov-label>
              <aegov-input name="password" type="password" autocomplete="current-password" is-revealable="true" is-required="true" data-required-message="Enter your password"></aegov-input>
            </aegov-form-field>
            <p class="text-end text-sm"><a href="#forgot-password" class="underline underline-offset-2">Forgot password?</a></p>
            <aegov-button type="submit" appearance="outline" variant="neutral-max" size="base" is-full="true">Sign in</aegov-button>
          </form>
        </div>

        <div class="border-t border-aeblack-100 pt-4 text-center">
          <button type="button" data-login-show="uaepass" class="inline-flex cursor-pointer items-center gap-2 rounded px-1 text-base font-semibold text-aeblack-800 hover:text-primary-700 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500">
            <svg class="size-4 rtl:-scale-x-100" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"/></svg>
            Back to UAE PASS
          </button>
        </div>
      </div>
    </div>
  </aegov-card>
</section>

<script>
  // Alternate login: UAE PASS is the default view. The quiet "Use other login option"
  // button swaps the panel to the username and password fallback, and "Back to UAE PASS"
  // swaps it back. Focus moves to each view's heading so screen readers hear the change.
  document.querySelectorAll('[data-login]').forEach((login) => {
    const views = login.querySelectorAll('[data-login-view]');

    const show = (name) => {
      views.forEach((view) => { view.hidden = view.dataset.loginView !== name; });
      login.querySelector(`[data-login-view="${name}"] h2`).focus();
    };

    login.querySelectorAll('[data-login-show]').forEach((trigger) => {
      trigger.addEventListener('click', () => show(trigger.dataset.loginShow));
    });

    // Fallback form: show each field's error under it, and on a failed submit
    // move focus to the first problem (the design system's whole-form pattern).
    const form = login.querySelector('[data-login-form]');
    const fields = [...form.querySelectorAll('aegov-input')];

    // When the warning is dismissed its close button disappears, so move focus
    // to the first field instead of letting it fall back to the page.
    login.addEventListener('aegovCalloutDismiss', () => fields[0].focus());

    form.addEventListener('aegovValidate', (event) => {
      if (event.detail.trigger === 'input') return;
      const valid = event.detail.validity.valid;
      event.target.isInvalid = !valid;
      event.target.errorMessage = valid ? '' : event.target.dataset.requiredMessage;
    });

    form.addEventListener('submit', async (event) => {
      event.preventDefault();
      const results = await Promise.all(fields.map((field) => field.validate('submit')));
      const firstInvalid = fields.find((_, index) => !results[index].valid);
      if (firstInvalid) {
        firstInvalid.focus();
        return;
      }
      // Example only: send new FormData(form) to your sign-in endpoint here.
    });
  });
</script>

Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.

OTP Example

A verification code step: where the code was sent, a labelled six-cell OTP input that supports paste and SMS autofill, and a resend link that becomes available after 30 seconds.

Get code

OTP Example

HTML
<section aria-labelledby="otp-heading" data-otp class="w-full px-4 sm:w-auto sm:px-0">
  <aegov-card appearance="solid" variant="primary" border-width="1" class="mx-auto block w-full sm:w-104">
    <div class="space-y-6 text-center">
      <div aria-hidden="true" class="mx-auto flex size-20 items-center justify-center rounded-full bg-primary-50">
        <span class="flex size-12 items-center justify-center rounded-full bg-white text-primary-700 shadow-sm ring-1 ring-primary-100">
          <svg class="size-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"/></svg>
        </span>
      </div>

      <div class="space-y-1">
        <h2 id="otp-heading" class="text-h5 font-semibold text-aeblack-800">Enter verification code</h2>
        <p class="text-base text-aeblack-600">We've sent a 6-digit code to <span dir="ltr" class="font-semibold whitespace-nowrap text-aeblack-800">+971 50 *** 4567</span></p>
      </div>

      <div class="border-t border-aeblack-100"></div>

      <form data-otp-form action="#" method="post" novalidate class="space-y-6">
        <aegov-form-field class="block">
          <aegov-label for="otp-code">Verification code</aegov-label>
          <aegov-otp field-id="otp-code" name="code" length="6" appearance="individual" size="sm sm:base" is-required="true" class="block"></aegov-otp>
        </aegov-form-field>
        <aegov-button type="submit" variant="primary" size="sm lg:base xl:lg" is-full="true">Verify code</aegov-button>
      </form>

      <div class="space-y-1 text-sm">
        <p class="text-aeblack-600">Didn't receive the code?</p>
        <button type="button" data-otp-resend disabled class="cursor-pointer rounded px-1 font-semibold text-aeblack-800 underline underline-offset-2 hover:text-primary-700 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500 disabled:cursor-default disabled:text-aeblack-600 disabled:no-underline disabled:tabular-nums">Resend code in 0:30</button>
        <p data-otp-status role="status" class="sr-only"></p>
      </div>
    </div>
  </aegov-card>
</section>

<script>
  // OTP step: the resend link stays off for 30 seconds, then turns on and says so
  // through a polite status message (the countdown itself is not announced every second).
  // Submit checks the code is complete and moves focus back to the cells if it is not.
  document.querySelectorAll('[data-otp]').forEach((block) => {
    const WAIT_SECONDS = 30;
    const form = block.querySelector('[data-otp-form]');
    const otp = form.querySelector('aegov-otp');
    const resend = block.querySelector('[data-otp-resend]');
    const status = block.querySelector('[data-otp-status]');
    let timer;

    const format = (seconds) => Math.floor(seconds / 60) + ':' + String(seconds % 60).padStart(2, '0');

    const startCooldown = () => {
      let remaining = WAIT_SECONDS;
      resend.disabled = true;
      resend.textContent = 'Resend code in ' + format(remaining);
      clearInterval(timer);
      timer = setInterval(() => {
        remaining -= 1;
        if (remaining > 0) {
          resend.textContent = 'Resend code in ' + format(remaining);
          return;
        }
        clearInterval(timer);
        resend.disabled = false;
        resend.textContent = 'Resend code';
        status.textContent = 'You can now request a new code.';
      }, 1000);
    };

    resend.addEventListener('click', () => {
      // Example only: ask your service to send a new code here.
      otp.clear();
      otp.isInvalid = false;
      otp.errorMessage = '';
      status.textContent = "We've sent a new code to your mobile number.";
      startCooldown();
      otp.focus();
    });

    form.addEventListener('aegovValidate', (event) => {
      if (event.detail.trigger === 'input') return;
      const valid = event.detail.validity.valid;
      otp.isInvalid = !valid;
      otp.errorMessage = valid ? '' : 'Enter the 6-digit code from your text message';
    });

    form.addEventListener('submit', async (event) => {
      event.preventDefault();
      const result = await otp.validate('submit');
      if (!result.valid) {
        otp.focus();
        return;
      }
      // Example only: send new FormData(form) to your verification endpoint here.
    });

    startCooldown();
  });
</script>

Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.

Split Screen Login Example 01

A full-page sign-in: the login column on one side and a full-height image on the other, with a panel explaining why UAE PASS is used and what you need. On mobile the login comes first and the information follows.

Get code

Split Screen Login Example 01

HTML
<div class="grid min-h-[max(100dvh,46rem)] bg-white lg:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]">
  <section aria-labelledby="split-sign-in-heading" class="flex flex-col gap-12 px-6 py-8 sm:px-10 lg:px-14 lg:py-10">
    <div class="flex items-center justify-between gap-4">
      <div role="img" aria-label="Logo" class="relative flex h-12 w-36 shrink-0 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-aeblack-50">
        <svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
        <span aria-hidden="true" class="relative rounded bg-aeblack-50 px-2 text-sm font-semibold text-aeblack-500">Logo</span>
      </div>
      <a href="#ar" lang="ar" dir="rtl" class="rounded px-1 text-base font-semibold text-aeblack-800 underline-offset-2 hover:underline">العربية</a>
    </div>

    <div class="my-auto w-full max-w-sm space-y-8 self-center">
      <div class="space-y-3">
        <h2 id="split-sign-in-heading" class="text-h4 md:text-h3 text-aeblack-800">Sign in to your account</h2>
        <p class="text-lg text-aeblack-600">Use UAE PASS to reach all our services with one secure digital identity.</p>
      </div>
      <div class="space-y-4">
        <aegov-link href="#uae-pass" variant="neutral-max" size="sm lg:base xl:lg" is-full="true">
          <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><path d="M50.69,184.92A127.52,127.52,0,0,0,64,128a63.85,63.85,0,0,1,24-50" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M128,128a191.11,191.11,0,0,1-24,93" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M96,128a32,32,0,0,1,64,0,223.12,223.12,0,0,1-21.28,95.41" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M218.56,184A289.45,289.45,0,0,0,224,128a96,96,0,0,0-192,0,95.8,95.8,0,0,1-5.47,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M92.81,160a158.92,158.92,0,0,1-18.12,47.84" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M120,64.5a66,66,0,0,1,8-.49,64,64,0,0,1,64,64,259.86,259.86,0,0,1-2,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M183.94,192q-2.28,8.88-5.18,17.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
          Sign in with UAE PASS
        </aegov-link>
        <p class="text-center text-sm text-aeblack-600 pt-2">A single trusted digital identity for all citizens, residents and visitors.</p>
      </div>
      <p class="border-t border-aeblack-100 pt-6 text-base text-aeblack-800">Need a UAE PASS account? <a href="https://uaepass.ae" class="font-semibold underline underline-offset-2">Create an account</a></p>
    </div>

    <nav aria-label="Sign-in help" class="flex flex-wrap gap-x-6 gap-y-2 text-sm text-aeblack-600">
      <a href="#help" class="underline underline-offset-2 hover:text-aeblack-800">Help with signing in</a>
      <a href="#privacy" class="underline underline-offset-2 hover:text-aeblack-800">Privacy</a>
      <a href="#accessibility" class="underline underline-offset-2 hover:text-aeblack-800">Accessibility</a>
    </nav>
  </section>

  <aside aria-labelledby="why-uae-pass-heading" class="relative isolate flex min-h-[36rem] items-end overflow-hidden bg-aeblack-100 p-4 sm:p-8 lg:min-h-0 lg:p-12">
    <div aria-hidden="true" class="absolute inset-0 -z-10">
      <svg class="size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
      <span class="absolute start-1/2 top-1/3 -translate-x-1/2 rounded-full bg-aeblack-100 px-3 py-1 text-sm font-semibold text-aeblack-700 rtl:translate-x-1/2">Image</span>
    </div>

    <div class="w-full max-w-lg rounded-3xl bg-white/95 p-6 shadow-xl ring-1 ring-aeblack-950/5 backdrop-blur sm:p-8">
      <h2 id="why-uae-pass-heading" class="text-h5 font-semibold text-aeblack-800">Why we use UAE PASS</h2>
      <ul class="mt-5 space-y-4">
        <li class="flex gap-3">
          <span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-primary-50 text-primary-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-25.25-18s-22.61,7.74-25.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,47.12,0A39.76,39.76,0,0,1,135.74,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"/></svg></span>
          <div>
            <p class="text-base font-semibold text-aeblack-800">One identity for everything</p>
            <p class="text-sm text-aeblack-600">Use the same account for government services across the country.</p>
          </div>
        </li>
        <li class="flex gap-3">
          <span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-primary-50 text-primary-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M208,40H48A16,16,0,0,0,32,56v58.78c0,89.61,75.82,119.34,91,124.39a15.53,15.53,0,0,0,10,0c15.2-5.05,91-34.78,91-124.39V56A16,16,0,0,0,208,40Zm0,74.79c0,78.42-66.35,104.62-80,109.18-13.53-4.51-80-30.69-80-109.18V56H208ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.68l50.34-50.34a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"/></svg></span>
          <div>
            <p class="text-base font-semibold text-aeblack-800">No passwords to remember</p>
            <p class="text-sm text-aeblack-600">Confirm each sign-in in the UAE PASS app on your phone.</p>
          </div>
        </li>
        <li class="flex gap-3">
          <span aria-hidden="true" class="flex size-9 shrink-0 items-center justify-center rounded-xl bg-primary-50 text-primary-700"><svg class="size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"/></svg></span>
          <div>
            <p class="text-base font-semibold text-aeblack-800">Sign documents digitally</p>
            <p class="text-sm text-aeblack-600">Approve applications and sign documents without visiting us.</p>
          </div>
        </li>
      </ul>
      <div class="mt-6 border-t border-aeblack-100 pt-5">
        <h3 class="text-sm font-semibold text-aeblack-800">What you need</h3>
        <p class="mt-1 text-sm text-aeblack-600">A smartphone with the UAE PASS app, and your Emirates ID.</p>
      </div>
    </div>
  </aside>
</div>

Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.

Split Screen Login Example 02

A full-page sign-in with a full-height image on one side and everything about signing in kept in the login column: the UAE PASS action, three short steps, and help. On mobile the image is left out so the login fills the screen.

Get code

Split Screen Login Example 02

HTML
<div class="grid min-h-[max(100dvh,46rem)] bg-white lg:grid-cols-[minmax(0,1.15fr)_minmax(0,1fr)]">
  <div aria-hidden="true" class="relative hidden overflow-hidden bg-aeblack-100 lg:block">
    <svg class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
    <span class="absolute start-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-aeblack-100 px-3 py-1 text-sm font-semibold text-aeblack-700 rtl:translate-x-1/2">Image</span>
  </div>

  <section aria-labelledby="split-two-heading" class="flex flex-col gap-12 px-6 py-8 sm:px-10 lg:px-14 lg:py-10">
    <div class="flex items-center justify-between gap-4">
      <div role="img" aria-label="Logo" class="relative flex h-12 w-36 shrink-0 items-center justify-center overflow-hidden rounded-lg border-2 border-dashed border-aeblack-200 bg-aeblack-50">
        <svg aria-hidden="true" class="absolute inset-0 size-full text-aeblack-200" preserveAspectRatio="none" viewBox="0 0 100 100" fill="none"><line x1="0" y1="0" x2="100" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/><line x1="100" y1="0" x2="0" y2="100" stroke="currentColor" stroke-width="1" vector-effect="non-scaling-stroke"/></svg>
        <span aria-hidden="true" class="relative rounded bg-aeblack-50 px-2 text-sm font-semibold text-aeblack-500">Logo</span>
      </div>
      <a href="#ar" lang="ar" dir="rtl" class="rounded px-1 text-base font-semibold text-aeblack-800 underline-offset-2 hover:underline">العربية</a>
    </div>

    <div class="my-auto w-full max-w-sm space-y-8 self-center">
      <div class="space-y-3">
        <h2 id="split-two-heading" class="text-h4 md:text-h3 text-aeblack-800">Welcome back</h2>
        <p class="text-lg text-aeblack-600">Sign in with UAE PASS to continue to your services.</p>
      </div>

      <div class="space-y-4">
        <aegov-link href="#uae-pass" variant="neutral-max" size="sm lg:base xl:lg" is-full="true">
          <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><path d="M50.69,184.92A127.52,127.52,0,0,0,64,128a63.85,63.85,0,0,1,24-50" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M128,128a191.11,191.11,0,0,1-24,93" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M96,128a32,32,0,0,1,64,0,223.12,223.12,0,0,1-21.28,95.41" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M218.56,184A289.45,289.45,0,0,0,224,128a96,96,0,0,0-192,0,95.8,95.8,0,0,1-5.47,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M92.81,160a158.92,158.92,0,0,1-18.12,47.84" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M120,64.5a66,66,0,0,1,8-.49,64,64,0,0,1,64,64,259.86,259.86,0,0,1-2,32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M183.94,192q-2.28,8.88-5.18,17.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
          Sign in with UAE PASS
        </aegov-link>
        <p class="text-center text-sm text-aeblack-600 pt-2">A single trusted digital identity for all citizens, residents and visitors.</p>
      </div>

      <div class="rounded-2xl bg-whitely-50 p-5 ring-1 ring-aeblack-950/5">
        <h3 class="text-base font-semibold text-aeblack-800">How it works</h3>
        <ol class="mt-4 space-y-3">
          <li class="flex gap-3 text-sm text-aeblack-700"><span aria-hidden="true" class="flex size-6 shrink-0 items-center justify-center rounded-full bg-primary-100 text-xs font-semibold text-primary-800">1</span>Select Sign in with UAE PASS.</li>
          <li class="flex gap-3 text-sm text-aeblack-700"><span aria-hidden="true" class="flex size-6 shrink-0 items-center justify-center rounded-full bg-primary-100 text-xs font-semibold text-primary-800">2</span>Approve the request in the UAE PASS app on your phone.</li>
          <li class="flex gap-3 text-sm text-aeblack-700"><span aria-hidden="true" class="flex size-6 shrink-0 items-center justify-center rounded-full bg-primary-100 text-xs font-semibold text-primary-800">3</span>You're signed in and brought back here.</li>
        </ol>
      </div>

      <p class="text-base text-aeblack-800">Need a UAE PASS account? <a href="https://uaepass.ae" class="font-semibold underline underline-offset-2">Create an account</a></p>
    </div>

    <p class="text-sm text-aeblack-600">Having trouble signing in? <a href="#help" class="font-semibold text-aeblack-800 underline underline-offset-2">Get help</a></p>
  </section>
</div>

Uses the UAE Design System web components. Load the theme, base CSS and component loader first. See installation.