.register {
  position: relative;
  width: 100%;
  min-height: 100vh;

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

  padding: 16px;

  overflow: hidden;

  background: #f8f9ff;
}

.register__background {
  position: absolute;
  inset: 0;

  overflow: hidden;
  pointer-events: none;
}

.symbol {
  position: absolute;

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

  font-weight: 800;
  user-select: none;
}

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

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

.s3 {
  top: 48%;
  left: 5%;
  font-size: 3rem;
}

.s4 {
  bottom: 12%;
  left: 14%;
  font-size: 3.2rem;
}

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

.s6 {
  top: 58%;
  right: 9%;
  font-size: 2.8rem;
}

.s7 {
  top: 17%;
  left: 43%;
  font-size: 2.4rem;
}

.s8 {
  bottom: 25%;
  right: 34%;
  font-size: 2.6rem;
}

.s9 {
  bottom: 12%;
  left: 45%;
  font-size: 2.7rem;
}

.s10 {
  top: 31%;
  right: 17%;
  font-size: 2.3rem;
}

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

.s12 {
  top: 35%;
  left: 24%;
  font-size: 2.1rem;
}

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

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

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

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

  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);

  box-sizing: border-box;
}

.register__brand {
  position: relative;

  min-width: 0;
  min-height: 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%
    );
}

.register__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;
}

.register__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;
}

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

  display: flex;
  align-items: center;

  gap: 10px;

  width: max-content;

  text-decoration: none;
}

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

  display: block;

  object-fit: contain;

  border-radius: 11px;

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

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

.logo__title {
  color: #ffffff;

  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
}

.logo__subtitle {
  margin-top: 1px;

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

  font-size: 0.72rem;
  line-height: 1.2;
}

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

  max-width: 360px;

  margin-top: auto;
}

.brand__content h1 {
  display: none;
}

.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;

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

  margin: 0;

  color: #ffffff;

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

  letter-spacing: -0.045em;

  font-weight: 600;
}

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

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

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

  padding: 30px 34px;

  background: #ffffff;

  border-radius: 18px;

  box-sizing: border-box;
}

.panel__header {
  margin-bottom: 18px;
}

.panel__header h2 {
  margin: 0;

  color: #0f172a;

  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;

  letter-spacing: -0.04em;
}

.panel__header p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 0.75rem;
  line-height: 1.45;
}

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

  gap: 9px;

  min-width: 0;
}

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

  gap: 4px;

  min-width: 0;
}

.field label {
  color: #0f172a;

  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 39px;

  padding: 0 12px;

  border: 1px solid #d7dee9;

  border-radius: 9px;

  background: #ffffff;

  color: #0f172a;

  font-size: 0.75rem;

  box-sizing: border-box;

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

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

.field input:hover {
  border-color: #c4ccd8;
}

.field input:focus {
  outline: none;

  border-color: #2563eb;

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

.password-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;
}

.password-wrapper {
  position: relative;
}

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

.password-toggle {
  position: absolute;

  top: 50%;
  right: 10px;

  width: 22px;
  height: 22px;

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

  transform: translateY(-50%);

  padding: 0;

  border: none;

  background: transparent;

  color: #94a3b8;

  cursor: pointer;
}

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

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

.password-strength {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.password-strength__bar {
  width: 100%;
  height: 3px;

  overflow: hidden;

  border-radius: 999px;

  background: #edf1f6;
}

.password-strength__bar span {
  display: block;

  width: 0;
  height: 100%;

  border-radius: inherit;

  background: #2563eb;

  transition: width 0.2s ease;
}

.password-strength small {
  font-size: 0.62rem;

  color: #64748b;
}

.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;

  box-sizing: border-box;
}

.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;
}

.terms-agreement {
  width: 100%;

  margin-top: 2px;

  color: #64748b;

  font-size: 0.62rem;
  line-height: 1.45;

  text-align: center;
}

.terms-agreement a,
.terms-agreement a:hover,
.terms-agreement a:focus,
.terms-agreement a:active,
.terms-agreement a:visited {
  color: #2563eb !important;

  text-decoration: none !important;

  background: transparent !important;
  background-color: transparent !important;

  box-shadow: none !important;

  border: 0 !important;
  border-radius: 0 !important;

  padding: 0 !important;
  margin: 0 !important;

  font-weight: 600;

  cursor: pointer;
}

.terms-agreement a:hover {
  color: #1d4ed8 !important;
}

.cf-turnstile {
  width: 300px;
  height: 54px;

  min-width: 300px;
  min-height: 54px;

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

  margin: 1px auto 0;

  flex: 0 0 54px;

  transform: scale(0.82);
  transform-origin: center;

  box-sizing: border-box;
}

.cf-turnstile iframe {
  display: block;
}

.submit-btn {
  width: 100%;
  height: 42px;

  margin-top: 1px;

  flex-shrink: 0;

  border: none;

  border-radius: 10px;

  background: #2563eb;

  color: #ffffff;

  font-size: 0.76rem;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.submit-btn:hover {
  background: #1d4ed8;

  transform: translateY(-1px);

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;

  cursor: not-allowed;
}

.register__footer {
  margin-top: 11px;

  text-align: center;

  color: #64748b;

  font-size: 0.68rem;
}

.register__footer a {
  color: #2563eb;

  font-weight: 700;

  text-decoration: none;
}

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

.error {
  min-height: 9px;

  color: #dc2626;

  font-size: 0.59rem;

  line-height: 1.1;
}

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

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

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

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

.field input:disabled {
  background: #f8fafc;

  cursor: not-allowed;
}

.register-toast {
  position: fixed;

  top: 20px;
  right: 20px;

  z-index: 9999;

  width: min(360px, calc(100vw - 40px));

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 13px 15px;

  border: 1px solid #fecaca;

  border-radius: 13px;

  background: #ffffff;

  color: #b91c1c;

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);

  opacity: 0;

  transform: translateY(-10px);

  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.register-toast.show {
  opacity: 1;

  transform: translateY(0);
}

.register-toast.success {
  border-color: #bbf7d0;

  color: #15803d;
}

@media (max-width: 768px) {
  .register {
    min-height: 100vh;

    padding: 12px;
  }

  .register__layout {
    width: 100%;
    height: auto;
    min-height: 0;

    grid-template-columns: 1fr;

    gap: 12px;

    padding: 12px;

    border-radius: 22px;

    overflow: visible;
  }

  .register__brand {
    min-height: 300px;

    padding: 24px;

    border-radius: 18px;
  }

  .register__panel {
    padding: 26px 22px;

    border-radius: 16px;
  }

  .brand__content {
    max-width: 100%;
  }

  .brand__content p {
    max-width: 100%;

    font-size: 1.55rem;
  }

  .panel__header h2 {
    font-size: 1.5rem;
  }

  .cf-turnstile {
    width: 300px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .register {
    padding: 8px;
  }

  .register__layout {
    padding: 8px;

    border-radius: 18px;
  }

  .register__brand {
    min-height: 260px;

    padding: 20px;

    border-radius: 15px;
  }

  .register__panel {
    padding: 22px 16px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo__title {
    font-size: 0.95rem;
  }

  .logo__subtitle {
    font-size: 0.68rem;
  }

  .brand__content p {
    font-size: 1.35rem;
  }

  .password-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   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;
}
