.auth-layout .header,
.auth-layout .bg-pattern {
  display: none;
}

.auth-layout {
  background: #f5f3ee;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-container {
  width: min(440px, 100%);
}

.auth-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
}

.auth-hero p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-card {
  background: var(--surface);
  border: 1px solid #ebe7df;
  border-radius: 18px;
  padding: 1.75rem 1.65rem 1.5rem;
  box-shadow: 0 10px 40px rgba(15, 22, 35, 0.07);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.auth-field input {
  padding: 0.9rem 1rem;
  border: 1.5px solid #e8e4dc;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #f7f6f3;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field input::placeholder {
  color: #a8a49c;
}

.auth-field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  min-height: 50px;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

.auth-alert.hidden {
  display: none;
}

.auth-alert--error {
  background: #fde8e7;
  color: var(--red-dark);
}

.auth-alert--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.auth-google-wrap {
  margin-bottom: 0;
}

.auth-google-btn-host {
  display: flex;
  justify-content: stretch;
  min-height: 48px;
}

.auth-google-custom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  color: #3c4043;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.auth-google-custom-btn:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.auth-google-custom-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.auth-google-fallback {
  width: 100%;
}

.auth-google-btn-host > div,
.auth-google-btn-host iframe {
  width: 100% !important;
}

.auth-setup-hint {
  margin-bottom: 0;
  padding: 0.75rem 0.85rem;
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-setup-hint code {
  font-size: 0.78rem;
  color: var(--text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e4dc;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
}

.auth-footer--center {
  justify-content: center;
  flex-wrap: wrap;
}

.auth-footer-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-footer-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-link:hover {
  color: var(--text);
}

.auth-footer-link--accent {
  color: var(--red);
}

.auth-footer-link--accent:hover {
  color: var(--red-dark);
}

@media (max-width: 480px) {
  .auth-page {
    padding: 1.5rem 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .auth-hero h1 {
    font-size: 1.65rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 1.35rem;
  }

  .auth-field input {
    font-size: 16px;
    min-height: 48px;
  }
}
