.login {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 100vh;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: #f8faff;
}

.login__background {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
  user-select: none;

  z-index: -10;
}

.symbol {
  position: absolute;

  color: rgba(37, 99, 235, 0.045);

  pointer-events: none;
  user-select: none;

  z-index: -10;
}

.s1 {
  top: 8%;
  left: 8%;
  font-size: 4rem;
}

.s2 {
  top: 10%;
  right: 10%;
  font-size: 4rem;
}

.s3 {
  top: 48%;
  left: 6%;
  font-size: 3.5rem;
}

.s4 {
  bottom: 10%;
  left: 14%;
  font-size: 3.8rem;
}

.s5 {
  bottom: 8%;
  right: 10%;
  font-size: 4rem;
}

.s6 {
  top: 58%;
  right: 10%;
  font-size: 3rem;
}

.s7 {
  top: 16%;
  left: 44%;
  font-size: 2.8rem;
}

.s8 {
  bottom: 28%;
  right: 34%;
  font-size: 3rem;
}

.s9 {
  bottom: 12%;
  left: 46%;
  font-size: 3rem;
}

.s10 {
  top: 30%;
  right: 18%;
  font-size: 2.6rem;
}

.s11 {
  bottom: 18%;
  left: 26%;
  font-size: 2.3rem;
}

.s12 {
  top: 36%;
  left: 24%;
  font-size: 2.3rem;
}

.s13 {
  top: 66%;
  right: 22%;
  font-size: 2.5rem;
}

.s14 {
  top: 14%;
  left: 24%;
  font-size: 2.4rem;
}

.login__layout {
  position: relative;
  z-index: 2;

  width: min(1000px, calc(100% - 20px));
  min-height: 600px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0;

  padding: 12px;

  background: #ffffff;

  border: 1px solid #e5eaf2;

  border-radius: 24px;

  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);

  align-items: stretch;
}

.login__brand {
  position: relative;

  display: flex;

  flex-direction: column;
  justify-content: space-between;

  min-width: 0;

  padding: 30px;

  border-radius: 18px;

  overflow: hidden;

  background: linear-gradient(145deg, #6fc8f5 0%, #2870ed 52%, #8950f5 100%);

  color: #ffffff;
}

.login__brand::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  top: -180px;
  right: -170px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.13);

  filter: blur(70px);

  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;

  gap: 10px;

  width: max-content;

  align-self: flex-start;

  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 11px;

  background: #ffffff;

  overflow: hidden;
}

.logo-icon img {
  width: 27px;
  height: 27px;

  object-fit: contain;

  display: block;
}

.logo__text {
  display: flex;

  flex-direction: column;

  gap: 1px;
}

.logo__title {
  font-size: 1rem;

  line-height: 1.1;

  font-weight: 800;

  color: #ffffff;
}

.logo__subtitle {
  font-size: 0.72rem;

  line-height: 1.2;

  color: rgba(255, 255, 255, 0.82);
}

.brand__content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;

  margin-top: auto;
}

.badge {
  display: block;

  height: auto;
  padding: 0;
  margin: 0 0 14px;

  border: none;
  border-radius: 0;
  background: transparent;

  color: rgba(255, 255, 255, 0.92);

  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 500;
}

.brand__content p {
  display: block;

  margin: 0;

  width: 100%;
  max-width: 410px;

  color: #ffffff;

  font-size: 1.8rem;
  line-height: 1.02;

  letter-spacing: -0.045em;

  font-weight: 600;
}

.brand__content h1 {
  margin: 0;

  max-width: 390px;

  color: #ffffff;

  font-size: 1.7rem;

  line-height: 1.04;

  letter-spacing: -0.04em;

  font-weight: 800;
}

.login__panel {
  position: relative;
  z-index: 100;

  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;

  background: #ffffff;

  border: none;

  border-radius: 18px;

  padding: 40px 44px;

  box-shadow: none;

  overflow: hidden;
}

.panel__header {
  margin-bottom: 18px;
}

.panel__header h2 {
  margin: 0;

  font-size: 1.55rem;

  line-height: 1.15;

  font-weight: 800;

  letter-spacing: -0.035em;

  color: #0f172a;
}

.panel__header p {
  margin: 6px 0 0;

  font-size: 0.84rem;

  color: #64748b;

  line-height: 1.5;
}

.login__form {
  display: flex;

  flex-direction: column;

  gap: 11px;
}

.field {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.field label {
  font-size: 0.76rem;

  line-height: 1.3;

  font-weight: 700;

  color: #0f172a;
}

.field input {
  width: 100%;

  height: 42px;

  padding: 0 14px;

  border-radius: 10px;

  border: 1px solid #d7e0ec;

  background: #ffffff;

  color: #0f172a;

  font-size: 0.84rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field input::placeholder {
  color: #a1aec0;

  opacity: 1;
}

.field input:focus {
  outline: none;

  border-color: #3b82f6;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  width: 20px;
  height: 20px;

  border: none;

  background: transparent;

  padding: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: #94a3b8;
}

.password-toggle:hover {
  color: #64748b;
}

.password-toggle:focus {
  outline: none;
}

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

.forgot-password {
  width: max-content;

  margin-top: 0;

  margin-left: auto;

  font-size: 0.76rem;

  font-weight: 600;

  color: #2563eb;

  text-decoration: none;

  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #1d4ed8;
}

.security-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 7px 10px;

  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 9px;
  background: #f8fbff;

  text-align: center;
}

.security-message svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #2563eb;
}

.security-message span {
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.3;
}

.cf-turnstile {
  width: 100%;

  display: flex;

  justify-content: center;
  align-items: center;

  margin: 2px auto 0;
}

.submit-btn {
  width: 100%;

  height: 42px;

  margin-top: 5px;

  border-radius: 10px;

  font-size: 0.84rem;

  font-weight: 700;

  cursor: pointer;
}

.login__footer {
  margin-top: 13px;

  text-align: center;

  font-size: 0.76rem;

  line-height: 1.4;

  color: #64748b;
}

.login__footer a {
  color: #2563eb;

  font-weight: 700;

  text-decoration: none;

  transition: color 0.2s ease;
}

.login__footer a:hover {
  color: #1d4ed8;
}

.error {
  min-height: 12px;

  font-size: 0.68rem;

  color: #dc2626;

  line-height: 1.2;
}

.field input.error-field {
  border-color: #dc2626;

  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field input.success-field {
  border-color: #16a34a;

  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}

.field input:disabled {
  background: #f8fafc;

  cursor: not-allowed;
}

button:disabled {
  opacity: 0.7;

  cursor: not-allowed;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }

  100% {
    transform: translateY(0);
  }
}

.login__layout {
  position: relative;
  z-index: 10;

  width: min(1000px, 100%);
  height: min(650px, calc(100vh - 48px));
  min-height: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 28px;

  padding: 16px;

  background: #ffffff;

  border: 1px solid rgba(15, 23, 42, 0.06);

  border-radius: 26px;

  overflow: hidden;

  box-shadow:
    0 24px 70px rgba(37, 99, 235, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.06);

  align-items: stretch;
}

.login__brand {
  position: relative;

  min-height: 0;
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 28px;

  overflow: hidden;

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(125, 211, 252, 0.95) 0%,
      rgba(125, 211, 252, 0.45) 18%,
      transparent 40%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(196, 181, 253, 0.85) 0%,
      rgba(196, 181, 253, 0.4) 22%,
      transparent 48%
    ),
    radial-gradient(
      circle at 20% 78%,
      rgba(37, 99, 235, 0.95) 0%,
      rgba(37, 99, 235, 0.55) 28%,
      transparent 58%
    ),
    radial-gradient(
      circle at 80% 90%,
      rgba(139, 92, 246, 0.8) 0%,
      rgba(139, 92, 246, 0.35) 25%,
      transparent 55%
    ),
    linear-gradient(135deg, #60a5fa 0%, #2563eb 42%, #4f46e5 70%, #8b5cf6 100%);

  color: #ffffff;
}

.login__brand::before {
  content: "";

  position: absolute;

  width: 430px;
  height: 430px;

  top: -220px;
  right: -180px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.16);

  filter: blur(45px);

  pointer-events: none;
}

.login__brand::after {
  content: "";

  position: absolute;

  width: 380px;
  height: 380px;

  bottom: -230px;
  left: -150px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);

  filter: blur(55px);

  pointer-events: none;
}

.login__brand .logo {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  gap: 10px;

  width: max-content;

  text-decoration: none;
}

.login__brand .logo img {
  width: 44px;
  height: 44px;

  display: block;

  object-fit: contain;

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.95);
}

.login__brand .logo__text {
  display: flex;
  flex-direction: column;
}

.login__brand .logo__title {
  color: #ffffff;

  font-size: 0.98rem;
  font-weight: 800;
}

.login__brand .logo__subtitle {
  margin-top: 2px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.7rem;
}

.login__brand .brand__content {
  position: relative;
  z-index: 2;

  max-width: 360px;

  margin-top: auto;
}

.login__brand .badge {
  display: block;

  height: auto;

  padding: 0;

  margin: 0 0 14px;

  border: none;
  border-radius: 0;

  background: transparent;

  color: rgba(255, 255, 255, 0.92);

  font-size: 1.05rem;
  line-height: 1.3;

  font-weight: 500;
}

.login__brand .brand__content h1 {
  display: none;
}

.login__brand .brand__content p {
  display: block;

  margin: 0;

  width: 100%;

  max-width: 410px;

  color: #ffffff;

  font-size: 1.8rem;
  line-height: 1.02;

  letter-spacing: -0.045em;

  font-weight: 600;
}

.login__panel {
  position: relative;
  z-index: 2;

  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 34px 34px;

  background: #ffffff;

  border-radius: 18px;

  box-shadow: none;

  overflow: hidden;
}

.login__panel .panel__header {
  margin-bottom: 18px;
}

.login__panel .panel__header h2 {
  margin: 0;

  color: #0f172a;

  font-size: 1.65rem;

  line-height: 1.1;

  font-weight: 800;

  letter-spacing: -0.04em;
}

.login__panel .panel__header p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 0.75rem;

  line-height: 1.45;
}

.login__form {
  display: flex;
  flex-direction: column;

  gap: 9px;
}

.login__form .field {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.login__form .field label {
  color: #0f172a;

  font-size: 0.7rem;

  line-height: 1.2;

  font-weight: 700;
}

.login__form .field input {
  width: 100%;

  height: 39px;

  padding: 0 12px;

  border: 1px solid #d7dee9;

  border-radius: 9px;

  background: #ffffff;

  color: #0f172a;

  font-size: 0.75rem;
}

.login__form .field input::placeholder {
  color: #a3adba;
}

.login__form .field input:focus {
  outline: none;

  border-color: #2563eb;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.login__form .password-wrapper input {
  padding-right: 38px;
}

.login__form .password-toggle {
  right: 10px;

  width: 22px;
  height: 22px;

  color: #94a3b8;
}

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

.login__form .forgot-password {
  width: max-content;

  margin-top: 0;
  margin-left: auto;

  font-size: 0.68rem;

  font-weight: 600;

  color: #2563eb;

  text-decoration: none;
}

.login__form .security-message {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 7px 10px;

  margin-top: 0;

  border: 1px solid rgba(37, 99, 235, 0.1);

  border-radius: 9px;

  background: #f8fbff;
}

.login__form .security-message svg {
  width: 15px;
  height: 15px;

  flex-shrink: 0;

  color: #2563eb;
}

.login__form .security-message span {
  color: #64748b;

  font-size: 0.62rem;

  line-height: 1.3;
}

.login__form .cf-turnstile {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  margin: 1px auto 0;

  transform: scale(0.82);

  transform-origin: center;
}

.login__form .submit-btn {
  width: 100%;

  height: 42px;

  margin-top: 1px;

  border: none;

  border-radius: 10px;

  background: #2563eb;

  color: #ffffff;

  font-size: 0.76rem;

  font-weight: 700;
}

/* FOOTER */
.login__footer {
  margin-top: 11px;

  text-align: center;

  color: #64748b;

  font-size: 0.68rem;

  line-height: 1.4;
}

.login__footer a {
  color: #2563eb;

  font-weight: 700;

  text-decoration: none;
}

@media (max-height: 700px) and (min-width: 769px) {
  .login {
    padding: 16px;
  }

  .login__layout {
    height: calc(100vh - 32px);

    gap: 24px;

    padding: 14px;

    border-radius: 22px;
  }

  .login__brand {
    padding: 25px;

    border-radius: 17px;
  }

  .login__panel {
    padding: 25px 30px;
  }

  .login__brand .logo-icon {
    width: 39px;
    height: 39px;
  }

  .login__panel .panel__header {
    margin-bottom: 13px;
  }

  .login__panel .panel__header h2 {
    font-size: 1.45rem;
  }

  .login__form {
    gap: 7px;
  }

  .login__form .field input {
    height: 36px;
  }

  .login__form .submit-btn {
    height: 39px;
  }
}

@media (min-width: 769px) {
  .login__brand .brand__content {
    max-width: 360px;
  }

  .login__brand .brand__content .badge {
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 500;

    margin: 0 0 14px;
  }

  .login__brand .brand__content p {
    display: block;

    width: 100%;
    max-width: 410px;

    margin: 0;

    color: #ffffff;

    font-size: 1.8rem;
    line-height: 1.02;

    letter-spacing: -0.045em;

    font-weight: 600;
  }
}


/* =========================================================
   BAC TRUTH — UNIVERSAL PAGE SCROLLBAR
   Matches the Quran page exactly.
   ========================================================= */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #b8bec8 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #b8bec8;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #aab1bc;
}
