.ml-login {
  --login-ink: #082a54;
  --login-accent: #005aa9;
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(16px, 2.3vh, 30px) 30px;
  color: var(--login-ink);
  background: radial-gradient(ellipse at 20% 48%, #d6e7fa 0, transparent 53%), linear-gradient(130deg, #e7f0fb, #f6f9ff 70%, #e7f2fc);
}

.ml-login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: 'photo panel';
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  direction: ltr;
  width: min(100%, 1040px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 34px;
  background: linear-gradient(145deg, #052b52 2%, #065797 76%, #0e88b3);
  box-shadow: 0 28px 65px -25px #12335666, 0 3px 10px #2039571a;
}

.ml-login-panel,
.ml-login-photo { direction: rtl; }

.ml-login-photo {
  position: relative;
  grid-area: photo;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #0a4777;
}

.ml-login-picture,
.ml-login-photo-shade,
.ml-login-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml-login-picture img { object-fit: cover; object-position: 18% 54%; }
.ml-login-photo-shade {
  background: linear-gradient(180deg, rgb(1 24 52 / 62%) 0%, rgb(6 39 65 / 5%) 38%, rgb(3 47 84 / 10%) 50%, #034678dc 84%, #006aa0 100%);
}

.ml-login-photo-brand,
.ml-login-photo-wave { display: none; }
.ml-login-photo-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(45px, 5.5vw, 73px) clamp(25px, 3.6vw, 50px) 56px;
}

.ml-login-photo-title {
  width: max-content;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.45;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 15px rgb(0 25 53 / 60%);
}

.ml-login-photo-title span {
  display: block;
  width: 90px;
  height: 10px;
  margin-top: 7px;
  border-top: 5px solid #20d3d3;
  border-radius: 55%;
  transform: rotate(-7deg);
}

.ml-login-features {
  display: grid;
  gap: 7px;
  width: min(192px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ml-login-features li {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 5px 16px;
  border: 1px solid rgb(211 242 255 / 14%);
  border-radius: 12px;
  background: rgb(4 42 83 / 77%);
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
}

.ml-login-panel {
  position: relative;
  grid-area: panel;
  align-self: stretch;
  display: grid;
  align-items: center;
  justify-items: center;
  margin: 14px 0 0 -4%;
  padding: 20px clamp(24px, 4vw, 62px) 49px;
  border-radius: 32px 0 0 0;
  background: linear-gradient(150deg, #fff, #f8faff 65%, #f2f6fc);
  box-shadow: -8px 0 22px rgb(4 35 75 / 12%);
}

.ml-login-content { width: 100%; max-width: 370px; }
.ml-login-form-institute,
.ml-login-identity { text-align: center; }
.ml-login-form-institute .institute-brand { font-size: 19px; }
.ml-login-identity { margin: 19px 0 20px; }
.ml-login-identity .masari-brand--full { font-size: clamp(34px, 3.6vw, 43px); }
.ml-login-arabic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 4px 0 8px;
  font-size: 1.19rem;
  line-height: 1.35;
  font-weight: 800;
}

.ml-login-arabic::before,
.ml-login-arabic::after { content: ''; width: 30px; height: 1.5px; background: #123b70; }
.ml-login-description { margin: 0; font-size: .99rem; font-weight: 750; line-height: 1.65; }
.ml-login-english { margin: 0; color: #475970; font: 400 .87rem/1.4 system-ui, sans-serif; }
.ml-login-form { display: grid; gap: 12px; margin: 0; }
.ml-login button,
.ml-login input { font: inherit; }
.ml-login button { cursor: pointer; }
.ml-login-field-label {
  position: absolute;
  top: -8px;
  right: 11px;
  padding: 0 5px;
  background: #fbfcff;
  color: #496179;
  font-size: .67rem;
  line-height: 1.3;
  font-weight: 650;
}

.ml-login-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  color: #183f69;
  border: 1px solid #b4c7d9;
  border-radius: 11px;
  background: linear-gradient(160deg, #fff, #f6f8fc);
}

.ml-login-field:focus-within { border-color: #087aac; box-shadow: 0 0 0 3px rgb(0 137 193 / 15%); }
.ml-login-field input {
  width: 100%;
  padding: 8px 14px 8px 42px;
  text-align: right;
  line-height: 1.5;
  font-size: .94rem;
  color: #153451;
  outline: none;
  border: 0;
  background: transparent;
}

.ml-login-field input::placeholder { color: #4e6074; opacity: 1; }
.ml-login-password input { padding-right: 45px; }
.ml-login-field-icon { position: absolute; left: 14px; display: grid; pointer-events: none; }
.ml-login-peek {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #183f69;
}

.ml-login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ml-login-link { min-height: 36px; padding: 1px 0; border: 0; background: transparent; color: #0059ab; font-weight: 750 !important; }
.ml-login-options,
.ml-login-register { font-size: .88rem; }
.ml-login-remember { display: flex; flex-direction: row-reverse; align-items: center; gap: 7px; min-height: 36px; color: #153755; font-weight: 650; cursor: pointer; }
.ml-login-remember input { width: 17px; height: 17px; margin: 0; accent-color: #0067ac; }
.ml-login-submit,
.ml-login-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  gap: 12px;
}

.ml-login .ml-login-submit {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(140deg, #0872be 0, #00519c 84%);
  box-shadow: 0 4px 9px #00539919;
  font-weight: 750;
  font-size: 1.03rem;
}

.ml-login .ml-login-submit:hover { background: linear-gradient(140deg, #0067ae, #004382); }
.ml-login-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ml-login button:focus-visible,
.ml-login-remember input:focus-visible { outline: 3px solid #0586b3; outline-offset: 3px; }
.ml-login-error { margin: 0; color: #ac2b20; font-size: .82rem; line-height: 1.6; }
.ml-login-divider { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: .86rem; color: #445973; }
.ml-login-divider::before,
.ml-login-divider::after { content: ''; flex: 1; height: 1px; background: #ccd6e3; }
.ml-login .ml-login-google { border: 1px solid #c4d1df; color: #153652; background: #fafcff; box-shadow: 0 2px 4px #152d4810; font-size: .92rem; font-weight: 700; }
.ml-login-google:hover { background: #f0f6ff; }
.ml-login-register { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 9px 0 0; font-weight: 650; }
.ml-login-local { display: flex; justify-content: center; align-items: center; gap: 5px; color: #50667d; margin: 0; font-size: .73rem; line-height: 1.5; }
.ml-login-footer-wave { position: absolute; z-index: 2; pointer-events: none; width: 100%; height: 47px; right: 0; bottom: -1px; }

@media (min-width: 761px) and (min-height: 950px) {
  .ml-login-panel { padding-top: 32px; padding-bottom: 68px; }
  .ml-login-identity { margin-top: 33px; margin-bottom: 26px; }
  .ml-login-form { gap: 13px; }
  .ml-login-divider { margin: 15px 0; }
  .ml-login-register { margin-top: 14px; }
}

@media (max-width: 760px) {
  .ml-login { display: block; padding: 0; background: #f9fbff; }
  .ml-login-shell { display: flex; flex-direction: column; min-height: 100svh; width: 100%; border: 0; border-radius: 0; background: #f9fbff; box-shadow: none; }
  .ml-login-photo { flex: none; width: 100%; height: clamp(225px, 31svh, 330px); }
  .ml-login-picture img { object-position: center 40%; }
  .ml-login-photo-shade { background: linear-gradient(180deg, #052949bc, transparent 40%); }
  .ml-login-photo-content, .ml-login-form-institute { display: none; }
  .ml-login-photo-brand { position: absolute; top: max(15px, env(safe-area-inset-top)); width: 100%; display: flex; justify-content: center; }
  .ml-login-photo-brand .institute-brand { font-size: 21px; filter: drop-shadow(0 1px 5px #00233b91); }
  .ml-login-photo-wave { position: absolute; display: block; width: 100%; height: 59px; bottom: -1px; left: 0; }
  .ml-login-panel { flex: 1; align-items: start; width: 100%; margin: 0; padding: 0 clamp(21px, 7vw, 50px) calc(33px + env(safe-area-inset-bottom)); border-radius: 0; background: linear-gradient(180deg, #f9fbff, #fff 60%, #f4f8fc); box-shadow: none; }
  .ml-login-content { max-width: 440px; }
  .ml-login-identity { position: relative; margin: -11px 0 18px; }
  .ml-login-identity .masari-brand--full { font-size: clamp(34px, 9vw, 43px); }
  .ml-login-arabic { margin-bottom: 7px; }
  .ml-login-field input { font-size: 16px; }
  .ml-login-divider { margin-block: 7px; }
  .ml-login-footer-wave { height: 30px; }
}

@media (max-width: 360px) {
  .ml-login-panel { padding-inline: 16px; }
  .ml-login-photo { height: 210px; }
}
