* {
  box-sizing: border-box;
}

html {
  color: #1e293b;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  overflow-x: hidden;
  background-color: #00050A;
}

.layout {
  width: 100%;
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.layout--bg-blurred {
  width: 100%;
  position: fixed;
  top: 0%;
  left: 0;

  opacity: 0.5;
  filter: blur(10px) saturate(50%);
  z-index: -1;
}

.layout--bg {
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.layout--btn {
  width: 85%;
  height: 10%;

  position: absolute;
  top: 81.6%;
  left: 50%;
  transform: translateX(-50%);

  opacity: 0;

  color: transparent;
  background-color: transparent;
  border: none;

  cursor: pointer;
}

.modal {
  width: 100%;
  height: 100%;

  display: none;

  position: fixed;
  top: 0;
  left: 0;

  z-index: 10;
}

.modal.active {
  display: block;
}

.modal--overlay {
  width: 100%;
  height: 100%;

  position: absolute;
  top: 0;
  left: 0;

  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.modal--container {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;

  display: grid;
  justify-content: center;
  place-items: center;

  overflow-y: auto;

  padding: 40px 20px;
  box-sizing: border-box;
}

.modal--window {
  width: min(480px, 100%);
  background: white;
  border-radius: 12px;

  margin: auto 0;

  flex-shrink: 0;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal--header {
  padding: 20px 32px;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.modal--title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

.modal--subtitle {
  text-align: center;
  text-wrap: balance;
  color: #1e293b;
  opacity: 0.5;
}

.modal--content {
  padding: 14px 32px;
}

.modal--footer {
  padding: 20px 32px;
  padding-top: 14px;
}

/* =========================
   FORM
========================= */

.register--form {
  width: 100%;
  max-width: 720px;

  display: flex;
  flex-direction: column;
  gap: 22px;

  background: #ffffff;
  border-radius: 24px;

  box-sizing: border-box;
}

/* =========================
   ROW
========================= */

.form--row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* =========================
   FIELD GROUP
========================= */

.form--field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;

  position: relative;
}

/* =========================
   LABEL
========================= */

.field--label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.field--label span {
  color: #ef4444;
}

/* =========================
   INPUTS
========================= */

.field--input,
.field--textarea {
  width: 100%;

  border: 1.5px solid #dbe2ea;
  border-radius: 14px;

  background: #f8fafc;

  padding: 14px 16px;

  font-size: 16px;
  color: #0f172a;

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

  outline: none;
  box-sizing: border-box;
}

.field--textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

/* =========================
   PLACEHOLDER
========================= */

.field--input::placeholder,
.field--textarea::placeholder {
  color: #94a3b8;
}

/* =========================
   FOCUS
========================= */

.field--input:focus,
.field--textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* =========================
   ERROR STATE
========================= */

.form--field-group.error .field--input,
.form--field-group.error .field--textarea {
  border-color: #ef4444;
  background: #fff5f5;
}

.form--field-group.error .field--input:focus,
.form--field-group.error .field--textarea:focus {
  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* =========================
   ERROR MESSAGE
========================= */

.field--error {
  display: none;

  font-size: 13px;
  color: #ef4444;
  font-weight: 500;
}

.field--error.active {
  display: block;
}

/* =========================
   SUBMIT BUTTON
========================= */

.form--submit {
  width: 100%;

  border: none;
  border-radius: 14px;

  background: linear-gradient(165deg,
      #2563eb,
      #3b82f6);

  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  padding: 16px 20px;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;

  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.22);
}

.form--submit:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.28);
}

.form--submit.disabled {
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.form--submit.sent {
  background: linear-gradient(165deg,
      #34d922,
      #30c758);

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

.form--submit.error {
  background: linear-gradient(165deg,
      #f6543b,
      #eb2525);

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

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

.iti__selected-dial-code {
  margin-top: 1px;
}

.iti__selected-country-primary {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

  .register--form {
    border-radius: 18px;
  }

  .form--row {
    grid-template-columns: 1fr;
  }

}
