﻿/**
 * Adaa SA4.5 login page (index.html)
 */

body.adaa-login {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(15, 107, 124, 0.35), transparent 55%),
    linear-gradient(160deg, #0a5563 0%, #0f6b7c 45%, #0d3d47 100%) !important;
}

.adaa-login .blankpage-form-field {
  position: relative;
  max-width: 420px;
}

.adaa-login-lang {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 10;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.adaa-login-lang:hover,
.adaa-login-lang:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.65);
  outline: none;
  color: #fff;
}

.adaa-login .login-form {
  text-align: start;
}

.adaa-login .form-label {
  display: block;
  text-align: start;
  width: 100%;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #24323a;
}

.adaa-login .form-group {
  margin-bottom: 1.1rem;
}

.adaa-login .login-form .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100%;
  min-height: 2.85rem;
  background: #fff !important;
  border: 1px solid #cfd8dc;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 61, 71, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.adaa-login .login-form .input-group:hover {
  border-color: #9eb8be;
}

.adaa-login .login-form .input-group:focus-within {
  border-color: #0f6b7c !important;
  box-shadow: 0 0 0 3px rgba(15, 107, 124, 0.18);
}

.adaa-login .login-form .input-group-prepend,
.adaa-login .login-form .input-group-append {
  display: flex !important;
  margin: 0 !important;
}

.adaa-login .login-form .input-group-text {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.85rem;
  padding: 0 0.85rem;
  background: #f4f8f9 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #0f6b7c !important;
  font-size: 1rem;
}

.adaa-login .login-form .form-control.in-log,
.adaa-login .login-form input.in-log {
  height: 2.85rem !important;
  min-height: 2.85rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #24323a !important;
  font-size: 0.9375rem;
  padding: 0.5rem 0.9rem !important;
}

.adaa-login .login-form .form-control.in-log:focus {
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
}

.adaa-login .login-form .form-control.in-log::placeholder {
  color: #8aa0a6;
  opacity: 1;
}

.adaa-login .login-form .form-control.in-log:-webkit-autofill,
.adaa-login .login-form .form-control.in-log:-webkit-autofill:hover,
.adaa-login .login-form .form-control.in-log:-webkit-autofill:focus {
  -webkit-text-fill-color: #24323a !important;
  caret-color: #24323a;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 99999s ease-out;
}

html[dir="rtl"] body.adaa-login,
html[lang^="ar"] body.adaa-login,
body.adaa-login.smart-rtl,
body.adaa-login.theme-rtl {
  font-family: "Droid Arabic Kufi", Tahoma, Arial, sans-serif !important;
}

html[dir="rtl"] body.adaa-login *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
html[lang^="ar"] body.adaa-login *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
body.adaa-login.smart-rtl *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
body.adaa-login.theme-rtl *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Droid Arabic Kufi", Tahoma, Arial, sans-serif !important;
}

html[dir="rtl"] body.adaa-login i.fa,
html[dir="rtl"] body.adaa-login .fa,
body.adaa-login.smart-rtl i.fa,
body.adaa-login.smart-rtl .fa {
  font-family: FontAwesome !important;
}

/*
 * SA4 app.bundle.css forces `html body { direction: ltr }` even in *-rtl.css.
 * That keeps the login form LTR while only labels swap. Override it here.
 */
html[dir="rtl"] body.adaa-login,
body.adaa-login.smart-rtl,
body.adaa-login.theme-rtl {
  direction: rtl !important;
  text-align: right;
}

html[dir="rtl"] body.adaa-login .blankpage-form-field,
html[dir="rtl"] body.adaa-login .card,
html[dir="rtl"] body.adaa-login .login-form,
html[dir="rtl"] body.adaa-login .form-group,
body.adaa-login.smart-rtl .blankpage-form-field,
body.adaa-login.smart-rtl .card,
body.adaa-login.smart-rtl .login-form,
body.adaa-login.smart-rtl .form-group {
  direction: rtl !important;
  text-align: right;
}

html[dir="rtl"] body.adaa-login .form-label,
html[dir="rtl"] body.adaa-login .login-form,
body.adaa-login.smart-rtl .form-label,
body.adaa-login.smart-rtl .login-form {
  text-align: right !important;
}

html[dir="rtl"] body.adaa-login .form-control,
html[dir="rtl"] body.adaa-login input.in-log,
body.adaa-login.smart-rtl .form-control,
body.adaa-login.smart-rtl input.in-log {
  direction: rtl !important;
  text-align: right !important;
}

/*
 * Keep the input-group flex axis LTR, then place the icon with order.
 * `direction:rtl` + `row-reverse` cancel each other and leave the icon on the left.
 */
html[dir="rtl"] body.adaa-login .input-group,
body.adaa-login.smart-rtl .input-group,
body.adaa-login.theme-rtl .input-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  direction: ltr !important;
}

html[dir="rtl"] body.adaa-login .input-group > .form-control,
body.adaa-login.smart-rtl .input-group > .form-control,
body.adaa-login.theme-rtl .input-group > .form-control {
  order: 1 !important;
  flex: 1 1 auto !important;
  direction: rtl !important;
  text-align: right !important;
  border-radius: 10px 0 0 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
}

html[dir="rtl"] body.adaa-login .input-group > .input-group-prepend,
html[dir="rtl"] body.adaa-login .input-group > .input-group-append,
body.adaa-login.smart-rtl .input-group > .input-group-prepend,
body.adaa-login.smart-rtl .input-group > .input-group-append,
body.adaa-login.theme-rtl .input-group > .input-group-prepend,
body.adaa-login.theme-rtl .input-group > .input-group-append {
  order: 2 !important;
  margin: 0 !important;
  display: flex !important;
}

html[dir="rtl"] body.adaa-login .input-group > .input-group-prepend .input-group-text,
html[dir="rtl"] body.adaa-login .input-group > .input-group-append .input-group-text,
body.adaa-login.smart-rtl .input-group > .input-group-prepend .input-group-text,
body.adaa-login.smart-rtl .input-group > .input-group-append .input-group-text,
body.adaa-login.theme-rtl .input-group > .input-group-prepend .input-group-text,
body.adaa-login.theme-rtl .input-group > .input-group-append .input-group-text {
  border-radius: 0 !important;
  border: 0 !important;
  background: #f4f8f9 !important;
}

html[dir="ltr"] body.adaa-login,
body.adaa-login:not(.smart-rtl):not(.theme-rtl) {
  direction: ltr;
}

html[dir="ltr"] body.adaa-login .form-label,
html[dir="ltr"] body.adaa-login .login-form,
html[dir="ltr"] body.adaa-login .form-control,
html[dir="ltr"] body.adaa-login input.in-log {
  text-align: left;
  direction: ltr;
}

.adaa-login-forgot .txt2 {
  color: #6c5ce7;
  text-decoration: none;
}

.adaa-login-forgot .txt2:hover {
  text-decoration: underline;
}

.adaa-login-brand {
  background: linear-gradient(90deg, #0a5563, #0f6b7c) !important;
  border: none !important;
}

.adaa-login-logo-wrap {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem !important;
  min-height: 8rem;
  text-align: center;
}

.adaa-login-logo-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.adaa-login .page-logo img,
.adaa-login .adaa-login-logo {
  display: block;
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.adaa-login .card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  border: none;
}

.adaa-login .nav-pills .nav-link {
  color: #0f6b7c;
  border-radius: 10px;
}

.adaa-login .nav-pills .nav-link.active {
  background: #0f6b7c;
  color: #fff;
}

.adaa-login .btn-primary,
.adaa-login .adaa-button {
  background: #0f6b7c !important;
  border-color: #0a5563 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 10px !important;
  min-height: 44px;
}

.adaa-login .btn-primary:hover {
  background: #0a5563 !important;
}

/* SweetAlert2 — match Adaa login teal */
body.adaa-login .swal2-popup {
  border-radius: 14px !important;
  font-family: inherit;
  padding: 1.75rem 1.5rem 1.5rem !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
body.adaa-login .swal2-title {
  color: #0d3d47 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}
body.adaa-login .swal2-html-container,
body.adaa-login .swal2-content {
  color: #24323a !important;
  font-size: 0.95rem !important;
}
body.adaa-login .swal2-icon.swal2-warning {
  border-color: #0f6b7c !important;
  color: #0f6b7c !important;
}
body.adaa-login .swal2-icon.swal2-error {
  border-color: #c0392b !important;
  color: #c0392b !important;
}
body.adaa-login .swal2-confirm.swal2-styled,
body.adaa-login .swal2-styled.swal2-confirm {
  background: #0f6b7c !important;
  border: 1px solid #0a5563 !important;
  border-radius: 10px !important;
  min-width: 6.5rem;
  font-weight: 700 !important;
  box-shadow: none !important;
}
body.adaa-login .swal2-confirm.swal2-styled:hover,
body.adaa-login .swal2-styled.swal2-confirm:hover {
  background: #0a5563 !important;
}
body.adaa-login.smart-rtl .swal2-popup,
html[dir="rtl"] body.adaa-login .swal2-popup {
  direction: rtl;
  text-align: right;
}
