:root {
  --reset-bg: #ffffff;
  --reset-text: #000000;
  --reset-card-bg: #ffffff;
  --reset-card-shadow: 0 4px 30px 4px rgba(0, 0, 0, 0.25);
  --reset-input-border: #7a7a7a;
  --reset-subtext: rgba(0, 0, 0, 0.5);
  --reset-link: #0a6ce1;
  --reset-button-bg: #18b9fa;
  --reset-button-text: #fefefe;
  --reset-card-radius: 15px;
  --reset-input-radius: 5px;
  --reset-button-radius: 6.065px;
  --reset-card-width: 522px;
  --reset-card-height: 348px;
  --reset-content-width: 394px;
  --reset-input-height: 33px;
  --reset-button-height: 40px;
  --reset-character-width: clamp(400px, 42vw, 640px);
  --reset-character-bottom: clamp(-80px, -6vh, -20px);
  --reset-logo-size: clamp(72px, 6vw, 120px);
  --reset-logo-offset: clamp(16px, 4vw, 56px);
  --reset-shape-small: clamp(210px, 24vw, 360px);
  --reset-shape-large: clamp(260px, 30vw, 420px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Archivo", sans-serif;
  background: var(--reset-bg);
  color: var(--reset-text);
}

.reset-page {
  min-height: 100vh;
  overflow: hidden;
}

body[data-theme="dark"] {
  --reset-bg: #003246;
  --reset-text: #ffffff;
  --reset-card-bg: #05668d;
  --reset-input-border: #18b8fa;
  --reset-subtext: #dbff76;
  --reset-link: #dbff76;
  --reset-button-bg: #18b8fa;
  --reset-button-text: #000000;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

.reset {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.reset__frame {
  position: relative;
  width: min(1440px, 100%);
  min-height: 900px;
  background: var(--reset-bg);
  overflow: visible;
}

.reset__vector,
.reset__ellipse,
.reset__character,
.reset__logo {
  position: fixed;
}

.reset__vector,
.reset__ellipse,
.reset__character {
  pointer-events: none;
}

.reset__vector--top {
  top: 0;
  left: 0;
  width: var(--reset-shape-small);
  height: auto;
  transform: translate(-28%, -32%);
  z-index: 0;
}

.reset__vector--bottom {
  bottom: 0;
  left: 0;
  width: var(--reset-shape-large);
  height: auto;
  transform: translate(-22%, 28%);
  z-index: 0;
}

.reset__ellipse {
  top: 0;
  right: 0;
  width: clamp(240px, 28vw, 420px);
  height: auto;
  transform: translate(24%, -28%);
  z-index: 0;
}

.reset__character {
  right: clamp(-48px, -4vw, 32px);
  bottom: var(--reset-character-bottom);
  width: var(--reset-character-width);
  height: auto;
  max-height: 105vh;
  object-fit: cover;
  z-index: 2;
}

.reset__logo {
  right: var(--reset-logo-offset);
  bottom: var(--reset-logo-offset);
  width: var(--reset-logo-size);
  height: auto;
  z-index: 4;
  display: block;
}

.reset__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.reset__card {
  position: absolute;
  left: 457px;
  top: calc(50% + 25px);
  transform: translateY(-50%);
  width: var(--reset-card-width);
  height: var(--reset-card-height);
  background: var(--reset-card-bg);
  border-radius: var(--reset-card-radius);
  box-shadow: var(--reset-card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px;
  z-index: 3;
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.auth-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card__title {
  margin: 0;
  font-size: 43.381px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  color: var(--reset-text);
}

.auth-card__subtitle {
  margin: 2px 0 18px;
  font-size: 13.785px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  color: var(--reset-subtext);
}

.form-message {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: var(--reset-input-radius);
  font-size: 14px;
}

.form-message--error {
  background: rgba(200, 60, 60, 0.15);
  color: var(--reset-text);
}

.form-message--success {
  background: rgba(24, 185, 250, 0.15);
  color: var(--reset-text);
}

.auth-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-field__label {
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: var(--reset-text);
}

.auth-field__control {
  position: relative;
  height: var(--reset-input-height);
  border: 1px solid var(--reset-input-border);
  border-radius: var(--reset-input-radius);
  display: flex;
  align-items: center;
  padding-left: 36px;
}

.auth-field__icon {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 22px;
}

.auth-field__input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 16px;
}

.auth-field__input:focus-visible {
  outline: 2px solid var(--reset-button-bg);
  outline-offset: 2px;
}

.auth-button {
  width: 100%;
  height: var(--reset-button-height);
  border-radius: var(--reset-button-radius);
  background: var(--reset-button-bg);
  color: var(--reset-button-text);
  font-size: 19.407px;
  font-weight: 600;
  line-height: normal;
  border: none;
  cursor: pointer;
}

.auth-link {
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--reset-link);
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .reset {
    align-items: stretch;
  }

  .reset__frame {
    min-height: auto;
    padding: 96px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .reset__vector,
  .reset__ellipse {
    display: none;
  }

  .reset__character,
  .reset__card {
    position: static;
    transform: none;
  }

  .reset__character {
    width: min(420px, 100%);
    height: auto;
  }

  .reset__card {
    width: min(var(--reset-card-width), 100%);
    height: auto;
    padding: 32px 24px;
  }

  .auth-card {
    width: min(var(--reset-content-width), 100%);
  }

  .reset__logo {
    position: fixed;
    right: var(--reset-logo-offset);
    bottom: var(--reset-logo-offset);
  }
}

@media (max-width: 640px) {
  .reset__frame {
    padding: 72px 16px 64px;
  }

  .reset__card {
    padding: 24px 16px;
  }

  .auth-card__title {
    font-size: 32px;
  }

  .auth-card__subtitle {
    font-size: 12px;
  }

  .auth-field__label {
    font-size: 14px;
  }

  .auth-button {
    font-size: 16px;
  }
}
