/* Вход родителя — без модалок перед ребёнком на следующих экранах */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff8e7 0%, #fff0dc 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 28px;
  padding: 28px 22px 24px;
  box-shadow: 0 12px 40px rgba(91, 159, 230, 0.15);
}

.auth-logo {
  font-size: 56px;
  text-align: center;
  line-height: 1;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: var(--color-text);
  margin: 0 0 6px;
}

.auth-sub {
  text-align: center;
  color: var(--color-text-light);
  font-size: 15px;
  margin: 0 0 20px;
}

.auth-error {
  background: rgba(243, 156, 18, 0.18);
  color: #b77900;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  background: #f0f4f8;
  color: var(--color-text-light);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.auth-tab--active {
  background: #5b9fe6;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 159, 230, 0.35);
}

.auth-tab:active {
  transform: scale(0.96);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 6px;
}

.auth-input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 2px solid #e8e4dc;
  font-size: 17px;
  font-family: inherit;
  font-weight: 600;
  box-sizing: border-box;
  background: #fffdf8;
}

.auth-input:focus {
  outline: none;
  border-color: #5b9fe6;
}

.auth-submit {
  margin-top: 18px;
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #6babf0, #5b9fe6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 159, 230, 0.35);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-switch {
  margin-top: 18px;
  width: 100%;
  min-height: 48px;
  border: none;
  background: transparent;
  color: #5b9fe6;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #fff8e7 0%, #fff0dc 100%);
  z-index: 5000;
  font-family: 'Nunito', system-ui, sans-serif;
}

.auth-splash__logo {
  font-size: 64px;
  line-height: 1;
}

.auth-splash__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
}

.auth-splash__muted {
  font-size: 16px;
  color: var(--color-text-light);
}
