@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400..800&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-weight: 500;
}
@keyframes bg-move {
  0%,
  100% {
    background-position: 0 100%;
  }
  50% {
    background-position: 100% 0;
  }
}
.logo {
  height: 48px;
  margin-bottom: 16px;
}
.container {
  width: 100vw;
  min-height: 100dvh;
  display: flex;
}
.animation {
  flex: 4;
  background-image: linear-gradient(to right top, #ffd8d8, #ffecd8, #dcdfff, #d6fff2);
  background-size: 200vw 200vh;
  background-position: top left;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bg-move 20s ease-in-out infinite;
}
.animation #globe {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70dvh;
  padding: 20px 0;
}
@media screen and (max-width: 768px) {
  .animation #globe {
    height: 550px;
  }
}
.animation #globe canvas {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.side {
  flex: 3;
  position: relative;
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.side .inner {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100% - 40px, 450px);
}
.form-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
}
.form-wrap h1 {
  font-weight: 600;
  font-size: 28px;
  text-align: center;
  color: #000;
  margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
  .form-wrap h1 {
    font-size: 22px;
  }
}
.form-wrap p {
  font-size: 14px;
  text-align: center;
  color: #000;
}
.form-group {
  width: 100%;
  margin-top: 32px;
  gap: 24px;
  display: flex;
  flex-direction: column;
}
.form-group .input-field {
  display: flex;
  flex-direction: column;
}
.form-group .input-field input {
  height: 50px;
  padding: 10px;
  background: none;
  outline: none;
  border-radius: 6px;
  border: 1px solid #bababa;
}
.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.check a {
  color: #4931a8;
  text-decoration: none;
}
.check div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.check input {
  width: 16px;
  height: 16px;
  appearance: none;
  position: relative;
}
.check input::after {
  width: 16px;
  height: 16px;
  content: "";
  border: 1px solid #bababa;
  border-radius: 4px;
  position: absolute;
  cursor: pointer;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Font Awesome 6 pro";
  display: flex;
  align-items: center;
  font-size: 12px;
  justify-content: center;
}
.check input:checked:after {
  content: "\f00c";
  background: #4931a8;
  color: #fff;
  border: 0;
}
.form-group .input-field label {
  font-size: 14px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-group .input-field label img {
  height: 14px;
}
form button {
  margin-top: 32px;
  width: 100%;
  height: 50px;
  border-radius: 6px;
  border: none;
  outline: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  background: #4931a8;
  font-weight: 400;
}
@media (max-width: 992px) {
  .animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  form {
    width: 100%;
  }
  .form-wrap {
    z-index: 999999999999;
    padding: 32px 24px;
    background-color: #f3f3f960;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(6px);
    border-radius: 24px;
    border: 3px solid #ffffff38;
  }
}
.footer {
  width: 100%;
  padding: 16px 24px;
  margin-top: auto;
  z-index: 99;
  color: #000;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: #4931a8;
  text-decoration: none;
}

/* Modern login refresh */
:root {
  --login-primary: #156f82;
  --login-primary-dark: #0f5362;
  --login-text: #111827;
  --login-muted: #6b7280;
  --login-border: #e5e7eb;
  --login-soft: #f8fafc;
  --login-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(21, 111, 130, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(29, 155, 168, 0.12), transparent 24rem),
    #f6f8fb;
  color: var(--login-text);
}

.container {
  gap: 28px;
  padding: 28px;
}

.side {
  flex: 0 0 min(520px, 48vw);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--login-shadow);
  border: 1px solid rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.side::before {
  content: "";
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--login-primary), #20a8b4, #68d391);
  position: absolute;
  inset-inline: 0;
  top: 0;
}

.side .inner {
  width: min(100% - 48px, 430px);
}

.logo {
  height: 58px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

.form-wrap h1 {
  color: var(--login-text);
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 6px;
}

.form-wrap h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 99px;
  margin: 12px auto 0;
  background: var(--login-primary);
}

.form-group {
  gap: 18px;
  margin-top: 30px;
}

.form-group .input-field label {
  color: #374151;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-group .input-field input {
  height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--login-border);
  border-radius: 14px;
  background: #fff;
  color: var(--login-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group .input-field input:focus {
  border-color: rgba(21, 111, 130, 0.58);
  box-shadow: 0 0 0 4px rgba(21, 111, 130, 0.12);
  transform: translateY(-1px);
}

.check {
  color: var(--login-muted);
}

.check input::after {
  border-color: var(--login-border);
  border-radius: 6px;
}

.check input:checked:after {
  background: var(--login-primary);
}

form button {
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--login-primary), #1d91a2);
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(21, 111, 130, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(21, 111, 130, 0.28);
  background: linear-gradient(135deg, var(--login-primary-dark), var(--login-primary));
}

.animation {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 111, 130, 0.92), rgba(15, 83, 98, 0.82)),
    linear-gradient(to right top, #e0f7fa, #eef2ff, #ecfdf5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--login-shadow);
}

.animation::before {
  content: "NAMI";
  position: absolute;
  inset-inline-start: 38px;
  top: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  z-index: 2;
}

.animation::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  pointer-events: none;
}

.animation #globe {
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.20));
}

.footer {
  color: var(--login-muted);
  font-weight: 700;
}

.footer a {
  color: var(--login-primary);
  font-weight: 800;
}

@media (max-width: 992px) {
  .container {
    padding: 18px;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
  }

  .side {
    flex: unset;
    width: min(100%, 480px);
    min-height: auto;
  }

  .animation {
    border-radius: 0;
  }

  .form-wrap {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  }
}

@media (max-width: 575px) {
  .container {
    padding: 0;
  }

  .side {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
  }

  .side .inner {
    width: min(100% - 28px, 430px);
  }

  .form-wrap h1 {
    font-size: 26px;
  }
}

/* Premium SaaS login redesign */
:root {
  --login-primary: #0f7c86;
  --login-primary-dark: #0b5962;
  --login-primary-strong: #0f172a;
  --login-accent: #22c55e;
  --login-text: #111827;
  --login-muted: #667085;
  --login-border: #d9e2ec;
  --login-panel: rgba(255, 255, 255, 0.92);
  --login-soft: #f6f8fb;
  --login-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

html {
  min-height: 100%;
  background: var(--login-soft);
}

body.nami-login-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(15, 124, 134, 0.10), transparent 32%),
    radial-gradient(circle at 16% 18%, rgba(34, 197, 94, 0.16), transparent 22rem),
    radial-gradient(circle at 88% 20%, rgba(15, 23, 42, 0.10), transparent 24rem),
    #f6f8fb;
}

.auth-shell {
  width: min(100%, 1560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(410px, 0.72fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
  position: relative;
}

.login-language-switcher {
  position: fixed;
  inset-block-start: 24px;
  inset-inline-end: 26px;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.login-language-switcher a {
  min-width: 42px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--login-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.login-language-switcher a.active,
.login-language-switcher a:hover {
  background: var(--login-primary-strong);
  color: #fff;
}

.login-visual {
  order: 1;
  min-height: calc(100dvh - clamp(36px, 6vw, 84px));
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 124, 134, 0.88)),
    #0f7c86;
  box-shadow: var(--login-shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 3vw, 38px);
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  pointer-events: none;
}

.login-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  inset-inline-end: -140px;
  inset-block-start: -120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.26), transparent 64%);
  animation: loginFloat 9s ease-in-out infinite;
}

.visual-copy,
.visual-metrics,
.login-visual #globe {
  position: relative;
  z-index: 2;
}

.visual-kicker {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #d1fae5;
  font-size: 12px;
  font-weight: 900;
}

.visual-copy h2 {
  max-width: 640px;
  margin: 18px 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 900;
}

.visual-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.8;
  text-align: start;
}

.login-visual #globe {
  width: min(100%, 680px);
  height: min(58dvh, 560px);
  margin: auto;
  opacity: 0.78;
  transform: scale(0.92);
}

.login-visual #globe canvas {
  min-height: 260px;
  filter: drop-shadow(0 30px 54px rgba(0, 0, 0, 0.24));
}

.visual-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-metrics span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 13px;
}

.login-panel {
  order: 2;
  min-height: calc(100dvh - clamp(36px, 6vw, 84px));
  border-radius: 30px;
  background: var(--login-panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: loginCardIn 0.55s ease both;
}

.login-panel::before {
  height: 4px;
  background: linear-gradient(90deg, var(--login-primary), var(--login-accent));
}

.login-panel .inner {
  width: min(100% - 56px, 440px);
}

.form-wrap {
  animation: loginContentIn 0.7s ease 0.08s both;
}

.logo {
  height: 62px;
  max-width: 190px;
  margin-bottom: 26px;
}

.form-wrap h1 {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 900;
  color: var(--login-primary-strong);
  margin-bottom: 10px;
}

.form-wrap h1::after {
  width: 44px;
  height: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--login-primary), var(--login-accent));
}

.login-subtitle {
  width: min(100%, 390px);
  margin: 0 auto;
  color: var(--login-muted);
  font-size: 15px;
  line-height: 1.8;
}

.form-group {
  gap: 18px;
  margin-top: 34px;
}

.form-group .input-field {
  gap: 8px;
}

.form-group .input-field label {
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.form-group .input-field label img {
  display: none;
}

.form-group .input-field input,
.password-control input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--login-border);
  background: #f8fafc;
  color: var(--login-text);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.password-control {
  position: relative;
}

.password-control input {
  padding-inline-end: 52px;
}

.rtl_mode .password-control input,
[dir="rtl"] .password-control input {
  padding-inline-end: 16px;
  padding-inline-start: 52px;
}

.password-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--login-primary);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

[dir="rtl"] .password-toggle {
  inset-inline-end: auto;
  inset-inline-start: 8px;
}

.password-toggle:hover {
  color: var(--login-primary-dark);
  background: rgba(15, 124, 134, 0.10);
  transform: translateY(-50%);
  box-shadow: none;
}

.form-group .input-field input:focus,
.password-control input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(15, 124, 134, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 124, 134, 0.12);
}

.check {
  margin-top: 2px;
  color: var(--login-muted);
  font-size: 14px;
}

.check input:checked:after {
  background: var(--login-primary);
}

form > button[type="submit"] {
  height: 56px;
  margin-top: 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--login-primary), #1395a2);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(15, 124, 134, 0.24);
}

form > button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--login-primary-dark), var(--login-primary));
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 124, 134, 0.30);
}

.footer {
  padding: 20px 24px 24px;
  color: var(--login-muted);
  font-size: 13px;
}

.footer img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 16px, 0);
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
  }

  .visual-copy h2 {
    font-size: clamp(28px, 4vw, 44px);
  }
}

@media (max-width: 992px) {
  body.nami-login-page {
    overflow: auto;
  }

  .auth-shell {
    display: flex;
    min-height: 100dvh;
    padding: 18px;
    align-items: center;
  }

  .login-language-switcher {
    position: absolute;
    inset-block-start: 24px;
    inset-inline-end: 24px;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    width: min(100%, 520px);
    min-height: auto;
    margin: 48px auto 0;
  }

  .login-panel .inner {
    width: min(100% - 40px, 430px);
    min-height: 620px;
  }

  .form-wrap {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (max-width: 575px) {
  .auth-shell {
    padding: 0;
  }

  .login-language-switcher {
    inset-block-start: 14px;
    inset-inline-end: 14px;
  }

  .login-panel {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
  }

  .login-panel .inner {
    width: min(100% - 30px, 430px);
    min-height: 100dvh;
    padding-top: 56px;
  }

  .logo {
    height: 54px;
  }
}
