* {
  box-sizing: border-box;
}

input, select, button, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #e6ebf1;
  color: #111111;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.page-loader-spinner {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(13, 86, 181, 0.18);
  border-top-color: #0d56b5;
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76px;
  background: #f4f4f4;
  border-bottom: 1px solid #dddddd;
}

.logo-box {
  width: 292px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page {
  display: flex;
  justify-content: center;
  padding: 46px 24px 60px;
}

.card {
  width: 100%;
  max-width: 780px;
}

h1 {
  margin: 0 0 52px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  max-width: 720px;
  color: #111111;
}

.identity-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px 38px;
  margin-bottom: 30px;
}

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

.field label {
  margin-bottom: 11px;
  font-size: 17px;
  font-weight: 700;
  color: #2f2f2f;
}

.select-wrap,
.field input {
  width: 100%;
  height: 58px;
  border: 1.5px solid #bfc4ca;
  border-radius: 10px;
  background: #fdfdfd;
}

.field input,
.select-wrap select {
  font-size: 18px;
  color: #111111;
}

.field input {
  padding: 0 18px;
  outline: none;
}

.field input::placeholder {
  color: #8b8b8b;
  opacity: 1;
}

.field input:focus,
.select-wrap:focus-within {
  border-color: #1256b0;
  box-shadow: 0 0 0 3px rgba(18, 86, 176, 0.12);
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  width: 12px;
  height: 12px;
  border-right: 3px solid #1256b0;
  border-bottom: 3px solid #1256b0;
  transform: rotate(45deg) translateY(-3px);
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 48px 0 18px;
  appearance: none;
  outline: none;
}

.country-select {
  padding-left: 18px;
}

.field-full {
  margin-bottom: 30px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 735px;
  font-size: 16px;
  line-height: 1.35;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 5px;
  background: #0d56b5;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 7px;
  height: 13px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(40deg);
}

.check-text a {
  color: #0d53b7;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.form-actions {
  margin-top: 46px;
}

.submit-button {
  min-width: 178px;
  height: 60px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  background: #0d56b5;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  background: #0b4ba0;
}

.submit-button:active:not(:disabled) {
  transform: translateY(1px);
}

.submit-button:disabled {
  background: #8aa8d8;
  cursor: not-allowed;
  opacity: 0.8;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
  }

  .page {
    padding: 24px 16px 40px;
  }

  h1 {
    font-size: 27px;
    margin-bottom: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .field label {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .select-wrap,
  .field input {
    height: 54px;
  }

  .field input,
  .select-wrap select,
  .check-row {
    font-size: 16px;
  }

  .logo-box {
    width: 210px;
    height: 42px;
  }

  .logo-placeholder {
    font-size: 12px;
  }

  .field-full {
    margin-bottom: 22px;
  }

  .check-row {
    gap: 12px;
    font-size: 15px;
  }

  .form-actions {
    margin-top: 34px;
  }

  .submit-button {
    min-width: 160px;
    height: 56px;
    font-size: 20px;
  }

  .checkbox-custom {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .checkbox-custom::after {
    left: 7px;
    top: 4px;
    width: 6px;
    height: 11px;
  }
}

@media (max-width: 480px) {
  .topbar {
    min-height: 58px;
  }

  .logo-box {
    width: min(170px, calc(100vw - 48px));
    height: 36px;
    border-width: 3px;
  }

  .logo-placeholder {
    font-size: 11px;
  }

  .page {
    padding: 20px 12px 32px;
  }

  .card {
    max-width: 100%;
  }

  h1 {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .form-grid {
    gap: 16px;
    margin-bottom: 16px;
  }

  .field label {
    font-size: 15px;
  }

  .select-wrap,
  .field input {
    height: 50px;
    border-radius: 8px;
  }

  .field input,
  .select-wrap select {
    font-size: 15px;
  }

  .field input {
    padding: 0 14px;
  }

  .select-wrap::after {
    right: 16px;
    width: 10px;
    height: 10px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }

  .select-wrap select {
    padding: 0 38px 0 14px;
  }

  .country-select {
    padding-left: 14px;
  }

  .field-full {
    margin-bottom: 18px;
  }

  .check-row {
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .form-actions {
    margin-top: 28px;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
    height: 54px;
    border-radius: 14px;
    font-size: 18px;
  }

  .checkbox-custom {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    border-radius: 5px;
  }

  .checkbox-custom::after {
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }
}

.welcome-body {
  background: #f0f2f5;
}

.welcome-topbar {
  position: relative;
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 2px;
  width: 2px;
  height: 24px;
  background: #0d56b5;
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.welcome-page {
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.welcome-logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 180px;
  height: 52px;
  overflow: hidden;
  margin-bottom: 20px;
}

.welcome-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.welcome-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #0d56b5;
}

.welcome-subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  font-weight: 400;
}

.welcome-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.welcome-select-wrap {
  position: relative;
  height: 52px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.welcome-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0d56b5;
  pointer-events: none;
}

.welcome-select-wrap select {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 36px 0 14px;
  font-size: 15px;
  color: #111111;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 10px;
}

.welcome-input-wrap {
  height: 52px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.welcome-input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111111;
  padding: 0 14px;
  font-size: 15px;
}

.welcome-input-wrap input::placeholder {
  color: #9ca3af;
  font-size: 18px;
}

.welcome-submit-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 17px;
  font-weight: 600;
  cursor: not-allowed;
  margin-top: 4px;
}

.welcome-submit-button:not(:disabled) {
  background: #0d56b5;
  color: #ffffff;
  cursor: pointer;
}

.welcome-footer {
  padding: 16px 16px 34px;
}

.welcome-footer-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 130px;
  height: 44px;
  overflow: hidden;
}

.welcome-footer-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 700px) {
  .welcome-page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.code-body {
  background: #f0f2f5;
  min-height: 100vh;
}

.code-page {
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
}

.code-logo-box {
  width: 180px;
  height: 52px;
  overflow: hidden;
  margin-bottom: 20px;
}

.code-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.code-title {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #0d56b5;
}

.code-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.code-card-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #0d56b5;
}

.code-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.code-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}

.code-info-icon {
  font-size: 14px;
  color: #6b7280;
}

.code-identification-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 10px;
}

.code-select-wrap {
  position: relative;
  height: 52px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.code-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  pointer-events: none;
}

.code-select-wrap select {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 32px 0 14px;
  font-size: 15px;
  color: #111111;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.code-readonly-wrap {
  height: 52px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.code-readonly-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 15px;
  color: #374151;
}

.code-input-wrap {
  height: 52px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.code-input-wrap input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 18px;
  color: #111111;
  letter-spacing: 0.1em;
}

.code-submit-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 17px;
  font-weight: 600;
  cursor: not-allowed;
  margin-top: 4px;
}

.code-submit-button:not(:disabled) {
  background: #0d56b5;
  color: #ffffff;
  cursor: pointer;
}

.code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 2px;
}

.code-footer-logo {
  width: 100px;
  height: 36px;
  overflow: hidden;
}

.code-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.code-footer-text {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  margin: 0;
  line-height: 1.5;
}

.code-footer-text a {
  color: #9ca3af;
  text-decoration: none;
}
