/* ==========================================================================
   AUTH PAGE (login / register)
   ========================================================================== */
.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px 18px;

  background:
    linear-gradient(360deg, #003804 0%, rgba(0, 0, 29, 0.2) 100%),
    url('/img/main-bg.webp');

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.auth__card {
  width: 100%;
  max-width: 440px;
  padding: 60px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);

  background: linear-gradient(180deg, #060c18 0%, #0b1526 100%);
  border: 1px solid #1c2c46;
  box-shadow: 0px 30px 80px -30px #000000e5;
}

.auth__logo {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 20px;
}

/* @media (min-width: 1024px) {
  .auth__card {
    max-width: 800px;
    padding: 32px 30px;
  }
  .auth__logo {
    margin-bottom: 24px;
  }
} */

/* --- Вкладки --- */
.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--surface-overlay);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.auth__tab {
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.auth__tab:hover {
  color: var(--text);
}
.auth__tab.is-active {
  background: linear-gradient(90deg, #FDEC00 0%, #FF0000 100%);

  color: var(--text);
}

/* --- Повідомлення --- */
.auth__msg {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
}
.auth__msg[hidden] {
  display: none;
}
.auth__msg.is-error {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent);
  color: var(--danger-text);
}
.auth__msg.is-ok {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}

/* --- Панелі / форми --- */
.auth__panel {
  margin-top: 20px;
}
.auth__panel[hidden] {
  display: none;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.auth__label {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.auth__input {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface-overlay);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.auth__input::placeholder {
  color: var(--muted);
}
.auth__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth__submit {
  margin-top: 6px;
}
.auth__submit:disabled {
  opacity: 0.7;
  cursor: default;
}

/* --- Перемикання / назад --- */
.auth__switch,
.auth__back {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  text-transform: capitalize;
}

.auth__switch {
  color: var(--muted);
}

.auth__link {
  color: #FDEC00;

  font-weight: 700;
  font-size: 13px;
  text-transform: capitalize;
}
.auth__link:hover {
  text-decoration: underline;
}

.auth__back {
  display: block;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.auth__back:hover {
  color: var(--text);
}
