@font-face {
  font-family: "NewRudaw";
  src: url("../fonts/NewRudaw-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NewRudaw";
  src: url("../fonts/NewRudaw-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "NewRudaw", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dce8f8 0%, #eaf2fb 40%, #c8dcf5 100%);
  padding: 24px;
  direction: rtl;
  zoom: 1.1;
}

.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(150deg, #dce8f8 0%, #eff6ff 55%, #c8dcf5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 3000;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  animation: pulseLogo 1.4s ease-in-out infinite;
}

.splash-screen h2 {
  font-size: 28px;
  color: #0f1c2e;
  font-weight: 700;
}

.splash-screen p {
  color: #4a6a8a;
  font-size: 15px;
}

.splash-loader {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(37, 99, 235, 0.22);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1040px;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(80, 120, 200, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  width: 100%;
  min-height: 580px;
  overflow: hidden;
  position: relative;
}

.right-panel {
  flex: 0 0 60%;
  padding: 50px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-panel {
  width: 40%;
  flex: 0 0 40%;
  background: linear-gradient(160deg, #f0f6ff 0%, #e4eefb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  border-radius: 24px 0 0 24px;
}

.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #a8c4e8 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

.left-logos,
.left-text,
.version-tag {
  position: relative;
  z-index: 2;
}

.left-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.gov-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.be-logo {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.left-text {
  text-align: center;
}

.left-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 6px;
}

.left-text p {
  font-size: 13.5px;
  color: #5a7a9a;
  font-weight: 400;
  line-height: 1.6;
}

.version-tag {
  margin-top: 20px;
  font-size: 12px;
  color: #8aaccb;
}

.form-header {
  text-align: right;
  margin-bottom: 30px;
}

.form-header h1 {
  font-size: 34px;
  font-weight: 700;
  color: #0f1c2e;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 17px;
  font-weight: 400;
  color: #4a6a8a;
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 8px;
  text-align: right;
}

.form-group input,
.select-wrapper select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #d8e4f0;
  border-radius: 12px;
  font-family: "NewRudaw", sans-serif;
  font-size: 15px;
  color: #1a2a3a;
  background: #f9fbff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: right;
  direction: rtl;
}

.form-group input::placeholder {
  color: #9db2c7;
}

.form-group input.is-invalid,
.select-wrapper select.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-group input:focus,
.select-wrapper select:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  padding: 14px 40px 14px 18px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrapper .chevron {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #7a9abb;
  font-size: 12px;
}

.btn-register {
  width: 100%;
  padding: 17px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "NewRudaw", sans-serif;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.25);
}

.btn-register:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.btn-register:active {
  transform: scale(0.99);
}

.btn-register.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

.btn-register:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.form-message {
  margin: 4px 2px 12px;
  min-height: 22px;
  font-size: 14px;
  color: #1d4ed8;
}

.form-message.error {
  color: #dc2626;
}

.form-message.success {
  color: #15803d;
}

.submit-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  width: calc(100% - 36px);
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1001;
}

.submit-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.submit-toast.success {
  border-color: #bbf7d0;
}

.submit-toast.error {
  border-color: #fecaca;
}

.submit-toast-icon {
  min-width: 26px;
  min-height: 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.submit-toast.success .submit-toast-icon {
  background: #dcfce7;
  color: #166534;
}

.submit-toast.error .submit-toast-icon {
  background: #fee2e2;
  color: #991b1b;
}

.submit-toast-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.submit-toast-text {
  font-size: 13px;
  color: #475569;
}

.page-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12.5px;
  color: #6f8dad;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

@media (max-width: 900px) {
  body {
    zoom: 1;
    padding: 12px;
    align-items: flex-start;
  }

  .page-wrap {
    max-width: 100%;
  }

  .card {
    flex-direction: column;
    border-radius: 18px;
    min-height: auto;
  }

  .left-panel {
    width: 100%;
    flex: 0 0 auto;
    min-height: 280px;
    border-radius: 0;
    order: 2;
    padding: 26px 20px;
  }

  .right-panel {
    order: 1;
    flex: 0 0 auto;
    padding: 28px 18px 24px;
  }

  .form-header {
    margin-bottom: 20px;
  }

  .form-header h1 {
    font-size: 28px;
  }

  .form-header p {
    font-size: 15px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 15px;
  }

  .form-group input,
  .select-wrapper select {
    font-size: 16px;
    padding: 13px 14px;
  }

  .select-wrapper select {
    padding-left: 36px;
  }

  .btn-register {
    font-size: 18px;
    padding: 15px;
  }

  .ip-chip {
    top: 10px;
    left: 10px;
    font-size: 13px;
    padding: 5px 10px;
  }

  .submit-toast {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    bottom: 10px;
  }

  .splash-logo {
    width: 120px;
  }

  .splash-screen h2 {
    font-size: 24px;
  }

  .splash-screen p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .left-panel {
    min-height: 240px;
  }

  .left-text h2 {
    font-size: 20px;
  }

  .left-text p {
    font-size: 12.5px;
  }

  .gov-logo {
    width: 74px;
    height: 74px;
  }

  .be-logo {
    width: 120px;
  }
}