/* auth.css — логин, регистрация, сброс пароля */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.auth-bg .auth-map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(247,251,255,.92) 0%,
    rgba(238,247,255,.88) 50%,
    rgba(247,251,255,.94) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-glass, rgba(255,255,255,.72));
  border: 1px solid var(--glass-border, rgba(255,255,255,.72));
  border-radius: var(--radius-xl, 24px);
  box-shadow: var(--shadow-lg, 0 24px 70px rgba(11,18,32,.12));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px 36px;
  animation: authCardIn .4s cubic-bezier(.2,.8,.2,1);
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary, #0b1220);
  margin-bottom: 8px;
}

.auth-logo span {
  color: var(--brand, #3aa0ff);
}

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

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary, rgba(11,18,32,.62));
  margin: 0;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--border, rgba(11,18,32,.09));
  background: var(--bg-elevated, rgba(255,255,255,.92));
  color: var(--text-primary);
  font-family: var(--font, "Manrope", sans-serif);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .14s ease, box-shadow .14s ease;
  box-sizing: border-box;
  outline: none;
}

.auth-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58,160,255,.14);
}

.auth-input::placeholder {
  color: var(--text-muted, rgba(11,18,32,.44));
  font-weight: 500;
}

.auth-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: var(--radius, 16px);
  background: linear-gradient(180deg, var(--brand, #3aa0ff), var(--brand-deep, #2b6fff));
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(58,160,255,.32);
  transition: transform .14s ease, box-shadow .14s ease;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(58,160,255,.42);
  color: #fff;
}

.auth-btn:active { transform: translateY(0); }

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease;
}

.auth-google:hover {
  background: var(--brand-soft, rgba(58,160,255,.14));
  border-color: var(--brand-soft-border, rgba(58,160,255,.18));
  color: var(--text-primary);
}

.auth-google img { width: 20px; height: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, rgba(11,18,32,.10));
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer p { margin: 6px 0; }

.auth-footer a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-errors {
  background: rgba(231,76,60,.08);
  border: 1px solid rgba(231,76,60,.20);
  border-radius: var(--radius-sm, 10px);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #b03224;
  line-height: 1.4;
}

.auth-errors ul {
  margin: 0;
  padding: 0 0 0 16px;
}

.auth-errors li { margin-bottom: 4px; }

.auth-helptext {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.auth-success {
  text-align: center;
  padding: 32px 0;
}

.auth-success-icon {
  font-size: 56px;
  color: var(--brand);
  margin-bottom: 16px;
  line-height: 1;
}

.auth-success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-success-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg, 20px);
  }
  .auth-title { font-size: 20px; }
}

html.dark-theme .auth-bg::after {
  background: linear-gradient(135deg,
    rgba(13,16,24,.94) 0%,
    rgba(19,21,28,.90) 50%,
    rgba(13,16,24,.94) 100%);
}
