* {
  box-sizing: border-box;
}

:root {
  --dealify-blue: #00c4e9;
  --dealify-blue-app: #0cc4e9;
  --dealify-text: #222222;
  --dealify-label: #555555;
  --dealify-muted: #888888;
  --dealify-placeholder: #bbbbbb;
  --dealify-border: #e5e7eb;
  --dealify-input-bg: #f7f8fa;
  --dealify-danger: #e53935;
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  min-height: 100%;
  background: var(--dealify-blue);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
input,
button,
p,
h1,
h2,
h3,
label,
a,
span,
strong {
  font-family: var(--font-ios);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dealify-blue);
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body.dealify-login-page {
  background: var(--dealify-blue);
}

button {
  cursor: pointer;
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

.login-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 88px) 18px max(40px, calc(env(safe-area-inset-bottom, 0px) + 34px));
  background: var(--dealify-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-button,
.language-button {
  position: fixed;
  top: max(20px, calc(env(safe-area-inset-top, 0px) + 10px));
  z-index: 50;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 21px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  outline: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.back-button {
  left: max(18px, calc((100vw - 580px) / 2 + 18px));
}

.language-button {
  right: max(18px, calc((100vw - 580px) / 2 + 18px));
  font-size: 22px;
}

.back-button i {
  font-size: 23px;
  line-height: 1;
}

.back-button:active,
.language-button:active {
  transform: scale(0.94);
  opacity: 0.82;
}

.hero-section {
  width: min(calc(100vw - 36px), 580px);
  text-align: center;
  padding: 0 8px 26px;
}

.hero-section h1 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.18px;
  text-align: center;
}

.hero-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
}

.login-card {
  width: min(calc(100vw - 36px), 580px);
  margin: 0 auto;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--dealify-text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.flash-message,
.error-banner {
  width: 100%;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.flash-message.success {
  background: #eaf9ef;
  color: #158344;
  border: 1px solid rgba(21, 131, 68, 0.22);
}

.flash-message.error,
.flash-message.danger,
.error-banner {
  background: #fff0f0;
  color: var(--dealify-danger);
  border: 1px solid var(--dealify-danger);
}

.error-banner[hidden] {
  display: none;
}

.input-group {
  margin: 0 0 16px;
}

.input-group label {
  display: block;
  margin: 0 0 6px 4px;
  color: var(--dealify-label);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.input-wrapper {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--dealify-border);
  background: var(--dealify-input-bg);
  display: flex;
  align-items: center;
  padding: 0 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.input-wrapper:focus-within {
  background: #ffffff;
  border-color: rgba(0, 196, 233, 0.62);
  box-shadow: 0 0 0 3px rgba(0, 196, 233, 0.10);
}

.input-wrapper.input-error {
  border-color: #f44336;
  background: #fffafa;
  box-shadow: none;
}

.input-icon {
  flex: 0 0 auto;
  margin-right: 10px;
  color: #aaaaaa;
  font-size: 16px;
}

.input-wrapper input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dealify-text);
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  text-align: left;
  padding: 0;
}

.input-wrapper input::placeholder {
  color: var(--dealify-placeholder);
  opacity: 1;
  font-weight: 400;
}

.toggle-password {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: -6px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #aaaaaa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.toggle-password i {
  font-size: 18px;
}

.field-error {
  display: block;
  min-height: 19px;
  margin: 4px 0 0 2px;
  color: #f44336;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}

.remember-toggle input {
  display: none;
}

.toggle-track {
  width: 34px;
  height: 20px;
  padding: 2px;
  border-radius: 10px;
  background: #dddddd;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}

.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  transition: transform 0.18s ease;
}

.remember-toggle input:checked + .toggle-track {
  background: var(--dealify-blue);
}

.remember-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(14px);
}

.remember-text {
  color: #999999;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
}

.remember-toggle input:checked ~ .remember-text {
  color: var(--dealify-blue);
  font-weight: 600;
}

.forgot-link {
  border: 0;
  background: transparent;
  color: var(--dealify-blue);
  padding: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}

.login-button {
  width: 100%;
  min-height: 50px;
  margin: 0 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--dealify-blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 196, 233, 0.35);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.login-button span,
.login-button {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-button:active {
  transform: scale(0.985);
}

.login-button:disabled {
  opacity: 0.65;
}

.mini-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.signup-row {
  margin: 0 0 24px;
  color: var(--dealify-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
}

.signup-row a {
  color: var(--dealify-blue);
  font-weight: 700;
  text-decoration: none;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.divider-row span {
  flex: 1;
  height: 1px;
  background: var(--dealify-border);
}

.divider-row strong {
  color: #999999;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Google renders an iframe. This keeps the real button aligned like the app version. */
.google-signin-wrapper {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.g_id_signin {
  width: 280px !important;
  min-height: 44px !important;
}

.apple-button {
  width: 280px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  padding: 0 16px;
  font-family: Roboto, var(--font-ios);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.apple-button i {
  font-size: 20px;
  flex: 0 0 auto;
}

.apple-button span {
  flex: 1;
  text-align: center;
}

.footer-note {
  width: min(calc(100vw - 36px), 580px);
  margin: 18px auto 0;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--dealify-input-bg) inset !important;
  -webkit-text-fill-color: var(--dealify-text) !important;
  caret-color: var(--dealify-text);
}

/* Arabic / RTL */
[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .back-button {
  left: auto;
  right: max(18px, calc((100vw - 580px) / 2 + 18px));
}

[dir="rtl"] .language-button {
  right: auto;
  left: max(18px, calc((100vw - 580px) / 2 + 18px));
}

[dir="rtl"] .back-button i {
  transform: scaleX(-1);
}

[dir="rtl"] .input-group label {
  margin-left: 0;
  margin-right: 4px;
  text-align: right;
  writing-direction: rtl;
}

[dir="rtl"] .input-wrapper {
  flex-direction: row-reverse;
}

[dir="rtl"] .input-icon {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .toggle-password {
  margin-right: 0;
  margin-left: -6px;
}

[dir="rtl"] .input-wrapper input {
  text-align: right;
  writing-direction: rtl;
}

[dir="rtl"] input[type="email"] {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .field-error {
  margin-left: 0;
  margin-right: 2px;
  text-align: right;
  writing-direction: rtl;
}

[dir="rtl"] .flash-message,
[dir="rtl"] .error-banner {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .options-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .remember-toggle {
  flex-direction: row-reverse;
}

[dir="rtl"] .toggle-track {
  justify-content: flex-end;
}

[dir="rtl"] .remember-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(-14px);
}

[dir="rtl"] .signup-row {
  flex-direction: row-reverse;
  direction: rtl;
}

[dir="rtl"] .footer-note {
  direction: rtl;
  writing-direction: rtl;
}

/* Tablet / laptop: keep app look, just wider and centered. No split landing page. */
@media (min-width: 700px) {
  .login-screen {
    justify-content: center;
    padding: 54px 24px 40px;
  }

  .back-button {
    display: none;
  }

  .language-button {
    top: 24px;
    right: max(24px, calc((100vw - 580px) / 2 + 24px));
  }

  [dir="rtl"] .language-button {
    right: auto;
    left: max(24px, calc((100vw - 580px) / 2 + 24px));
  }

  .hero-section {
    width: min(calc(100vw - 48px), 580px);
    padding-top: 0;
    padding-bottom: 32px;
  }

  .hero-section h1 {
    font-size: 22px;
  }

  .hero-section p {
    font-size: 14.5px;
  }

  .login-card {
    width: min(calc(100vw - 48px), 580px);
    padding: 26px;
    border-radius: 24px;
  }

  .footer-note {
    width: min(calc(100vw - 48px), 580px);
  }
}

@media (max-width: 380px) {
  .login-screen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section,
  .login-card,
  .footer-note {
    width: calc(100vw - 32px);
  }

  .login-card {
    padding: 20px;
  }

  .options-row {
    gap: 9px;
  }

  .remember-text {
    font-size: 11.5px;
  }

  .forgot-link {
    font-size: 12.5px;
  }

  .g_id_signin,
  .apple-button {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-height: 740px) and (max-width: 699px) {
  .login-screen {
    padding-top: calc(env(safe-area-inset-top, 0px) + 68px);
  }

  .hero-section {
    padding-bottom: 18px;
  }

  .login-card {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .input-group {
    margin-bottom: 13px;
  }

  .options-row {
    margin-bottom: 18px;
  }

  .login-button {
    margin-bottom: 16px;
  }

  .signup-row {
    margin-bottom: 18px;
  }

  .divider-row {
    margin-bottom: 14px;
  }

  .footer-note {
    margin-top: 14px;
  }
}



/* 4.1.1 clean fix copied from signup layout behavior */
.back-button {
  display: none !important;
}

.language-button {
  width: auto !important;
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Reset the failed absolute-position patches completely */
.input-wrapper,
html[dir="rtl"] .input-wrapper,
body.is-ar .input-wrapper,
html[dir="rtl"] #emailWrapper,
html[dir="rtl"] #passwordWrapper,
body.is-ar #emailWrapper,
body.is-ar #passwordWrapper {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  min-height: 50px !important;
  height: auto !important;
  padding: 0 14px !important;
  overflow: visible !important;
}

.input-icon,
.toggle-password,
html[dir="rtl"] .input-icon,
body.is-ar .input-icon,
html[dir="rtl"] #emailWrapper .input-icon,
html[dir="rtl"] #passwordWrapper .input-icon,
body.is-ar #emailWrapper .input-icon,
body.is-ar #passwordWrapper .input-icon,
html[dir="rtl"] #passwordWrapper .toggle-password,
body.is-ar #passwordWrapper .toggle-password {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  order: initial !important;
  z-index: auto !important;
}

/* English fields */
.input-wrapper {
  flex-direction: row !important;
}

.input-icon {
  margin-right: 10px !important;
  margin-left: 0 !important;
}

.input-wrapper input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 50px !important;
  line-height: normal !important;
  padding: 0 !important;
  text-align: left !important;
}

.toggle-password {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  margin-right: -6px !important;
  margin-left: 0 !important;
}

/* Arabic fields copied from signup: wrapper row-reverse, icon right, eye left */
html[dir="rtl"] .input-wrapper,
body.is-ar .input-wrapper {
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .input-icon,
body.is-ar .input-icon {
  margin-right: 0 !important;
  margin-left: 10px !important;
}

/* Email in Arabic: icon right, text aligned right but still LTR typing */
html[dir="rtl"] #email,
body.is-ar #email {
  direction: ltr !important;
  writing-direction: ltr !important;
  text-align: right !important;
  padding: 0 !important;
}

html[dir="rtl"] #email::placeholder,
body.is-ar #email::placeholder {
  text-align: right !important;
}

/* Password in Arabic: lock right, eye left, no overlap */
html[dir="rtl"] #password,
body.is-ar #password {
  direction: rtl !important;
  writing-direction: rtl !important;
  text-align: right !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}

html[dir="rtl"] #password::placeholder,
body.is-ar #password::placeholder {
  text-align: right !important;
}

html[dir="rtl"] #passwordWrapper .toggle-password,
body.is-ar #passwordWrapper .toggle-password {
  margin-left: -6px !important;
  margin-right: 0 !important;
}

/* Labels/errors Arabic */
html[dir="rtl"] .input-group label,
body.is-ar .input-group label {
  margin-left: 0 !important;
  margin-right: 4px !important;
  text-align: right !important;
}

html[dir="rtl"] .field-error,
body.is-ar .field-error {
  margin-left: 0 !important;
  margin-right: 2px !important;
  text-align: right !important;
}

/* Arabic options row */
html[dir="rtl"] .options-row,
body.is-ar .options-row {
  flex-direction: row !important;
  direction: ltr !important;
}

html[dir="rtl"] .forgot-link,
body.is-ar .forgot-link {
  order: 1 !important;
  margin: 0 !important;
  text-align: left !important;
}

html[dir="rtl"] .remember-toggle,
body.is-ar .remember-toggle {
  order: 2 !important;
  flex-direction: row-reverse !important;
  direction: rtl !important;
}

html[dir="rtl"] .remember-toggle .toggle-track,
body.is-ar .remember-toggle .toggle-track {
  order: 1 !important;
  direction: ltr !important;
  justify-content: flex-start !important;
  margin: 0 !important;
}

html[dir="rtl"] .remember-toggle .remember-text,
body.is-ar .remember-toggle .remember-text {
  order: 2 !important;
}

html[dir="rtl"] .toggle-thumb,
body.is-ar .toggle-thumb {
  transform: translateX(0) !important;
}

html[dir="rtl"] .remember-toggle input:checked + .toggle-track .toggle-thumb,
body.is-ar .remember-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(14px) !important;
}

/* Sign-up row spacing */
.signup-row {
  gap: 4px !important;
  flex-wrap: wrap !important;
}

.signup-row a,
.signup-action {
  margin-inline-start: 4px !important;
}

html[dir="rtl"] .signup-row,
body.is-ar .signup-row {
  flex-direction: row !important;
  direction: rtl !important;
}

/* Laptop: no back button, app-style centered card */
@media (min-width: 700px) {
  .back-button {
    display: none !important;
  }

  .language-button {
    top: 22px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: none;
  }
}


/* 4.1.2 RTL icon flip fix
   Important: with direction: rtl + flex-direction: row, DOM order becomes:
   icon on the RIGHT, input in the middle, eye button on the LEFT.
*/
html[dir="rtl"] #emailWrapper,
html[dir="rtl"] #passwordWrapper,
body.is-ar #emailWrapper,
body.is-ar #passwordWrapper {
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  padding: 0 14px !important;
  position: static !important;
  overflow: visible !important;
}

html[dir="rtl"] #emailWrapper .input-icon,
html[dir="rtl"] #passwordWrapper .input-icon,
body.is-ar #emailWrapper .input-icon,
body.is-ar #passwordWrapper .input-icon {
  order: 0 !important;
  margin-right: 0 !important;
  margin-left: 10px !important;
  position: static !important;
  transform: none !important;
}

html[dir="rtl"] #email,
body.is-ar #email {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  direction: ltr !important;
  writing-direction: ltr !important;
  text-align: right !important;
  padding: 0 !important;
}

html[dir="rtl"] #password,
body.is-ar #password {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  direction: rtl !important;
  writing-direction: rtl !important;
  text-align: right !important;
  padding: 0 !important;
}

html[dir="rtl"] #passwordWrapper .toggle-password,
body.is-ar #passwordWrapper .toggle-password {
  order: 2 !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  margin-right: -6px !important;
  margin-left: 0 !important;
  position: static !important;
  transform: none !important;
}

/* Placeholders stay on the right in Arabic */
html[dir="rtl"] #email::placeholder,
html[dir="rtl"] #password::placeholder,
body.is-ar #email::placeholder,
body.is-ar #password::placeholder {
  text-align: right !important;
}


/* 4.1.3 vertical alignment fix
   The icons/text were off because inputs had their own 50px height/line-height while the wrapper also had height.
   This makes the wrapper the only height controller and centers all children.
*/
.input-wrapper,
html[dir="rtl"] .input-wrapper,
body.is-ar .input-wrapper,
html[dir="rtl"] #emailWrapper,
html[dir="rtl"] #passwordWrapper,
body.is-ar #emailWrapper,
body.is-ar #passwordWrapper {
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.input-wrapper input,
html[dir="rtl"] .input-wrapper input,
body.is-ar .input-wrapper input {
  height: auto !important;
  min-height: 0 !important;
  line-height: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  display: block !important;
  align-self: center !important;
}

.input-icon,
html[dir="rtl"] .input-icon,
body.is-ar .input-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  align-self: center !important;
  position: static !important;
  transform: none !important;
}

.input-icon::before,
.toggle-password i::before {
  line-height: 1 !important;
}

.toggle-password,
html[dir="rtl"] .toggle-password,
body.is-ar .toggle-password,
html[dir="rtl"] #passwordWrapper .toggle-password,
body.is-ar #passwordWrapper .toggle-password {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}

.toggle-password i {
  font-size: 18px !important;
  line-height: 1 !important;
  display: block !important;
}

/* English spacing */
html[dir="ltr"] .input-icon,
body:not(.is-ar) .input-icon {
  margin-right: 10px !important;
  margin-left: 0 !important;
}

html[dir="ltr"] #passwordWrapper .toggle-password,
body:not(.is-ar) #passwordWrapper .toggle-password {
  margin-left: 0 !important;
  margin-right: -6px !important;
}

/* Arabic spacing and side positions */
html[dir="rtl"] #emailWrapper,
html[dir="rtl"] #passwordWrapper,
body.is-ar #emailWrapper,
body.is-ar #passwordWrapper {
  flex-direction: row !important;
  direction: rtl !important;
}

html[dir="rtl"] #emailWrapper .input-icon,
html[dir="rtl"] #passwordWrapper .input-icon,
body.is-ar #emailWrapper .input-icon,
body.is-ar #passwordWrapper .input-icon {
  margin-right: 0 !important;
  margin-left: 10px !important;
}

html[dir="rtl"] #passwordWrapper .toggle-password,
body.is-ar #passwordWrapper .toggle-password {
  margin-right: -6px !important;
  margin-left: 0 !important;
}

/* Keep the text baseline visually centered */
#email,
#password {
  font-size: 15px !important;
}
