.register {
  padding: 0;
  background: #000;
  color: #fff;
}

.register__box {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  min-height: clamp(36rem, 58vw, 52rem);
  overflow: hidden;
  border: 0;
}

.register__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.register__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 0;
  opacity: 0.88;
}

.register__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.register__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--pad-x), 52rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

.register__intro {
  display: grid;
  gap: 0.5rem;
}

.register__eyebrow {
  display: none;
}

.register__title {
  font-size: clamp(1.75rem, 3.2vw, 2.9rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 22ch;
  letter-spacing: -0.015em;
  color: #fff;
}

.register__lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.3;
  font-weight: 300;
}

.register__form {
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
}

.register__group {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.register__group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.register__group-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

.register__fields {
  display: grid;
  gap: 0.75rem;
}

.register__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.register__field {
  display: grid;
  gap: 0.35rem;
}

.register__field--full {
  grid-column: 1 / -1;
}

.register__field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.register__field input,
.register__field select,
.register__field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  line-height: 1.4;
  color: #000;
}

.register__field textarea {
  min-height: 6.5rem;
  resize: vertical;
  padding-top: 0.75rem;
}

.register__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.register__field input::placeholder,
.register__field textarea::placeholder {
  color: #888;
}

.register__field input:focus,
.register__field select:focus,
.register__field textarea:focus {
  outline: 2px solid #fff;
  border-color: #fff;
}

.register__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}

.register__check input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: #fff;
  flex-shrink: 0;
}

.register__actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.btn--google {
  width: 100%;
  max-width: 22rem;
  min-height: 2.85rem;
  background: #fff;
  color: #000;
  border-color: #fff;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 500;
}

.btn--google:hover {
  background: #f2f2f2;
}

.btn--google svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

#google-btn {
  display: flex;
  width: 100%;
  max-width: 22rem;
}

#google-btn:empty {
  display: none;
}

#google-btn > div {
  width: 100% !important;
}

.register__note {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  max-width: 44ch;
}

.register__success {
  display: none;
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
  max-width: 28ch;
}

.register__hint {
  display: none;
}

.register__form.is-done {
  display: none;
}

.register__box.is-done .register__success {
  display: block;
}

.register__box.is-done .register__intro {
  display: none;
}

.google-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.google-modal.is-open {
  display: grid;
}

.google-modal__panel {
  width: min(100%, 22rem);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem;
  color: #000;
}

.google-modal__brand {
  font-weight: 600;
  margin-bottom: 1rem;
}

.google-modal__account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.5rem;
  color: #000;
}

.google-modal__account:hover {
  border-color: var(--expo);
}

.google-modal__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--expo);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.google-modal__meta strong {
  display: block;
  font-size: 0.92rem;
}

.google-modal__meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.google-modal__close {
  width: 100%;
  margin-top: 0.35rem;
}

@media (max-width: 720px) {
  .register__row {
    grid-template-columns: 1fr;
  }

  .register__content {
    padding-block: 2.25rem;
  }
}
