/* Страницы входа и регистрации — GOLD & BLACK LUXURY */

@import url('./design-tokens.css?v=11');

.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 24px;
  overflow: hidden;
}

.auth-brand {
  text-align: center;
  margin: -28px -24px 20px;
  padding: 28px 24px 24px;
  background: var(--gradient-hero);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.08);
}

.auth-brand img {
  max-width: 200px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.25));
}

.auth-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}

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

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

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-field input,
.auth-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: var(--focus-ring);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-gold);
  background: var(--gradient-gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.28);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-session-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.auth-session-actions .auth-submit,
.auth-session-actions .auth-secondary {
  width: 100%;
}

.auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius-sm);
  display: none;
}

.auth-error.is-visible {
  display: block;
}

.auth-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

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

.auth-footer a:hover {
  color: var(--gold-400);
  text-decoration: underline;
}

.auth-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.auth-hint--block {
  text-align: left;
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.auth-hint--block strong {
  color: var(--text-primary);
}

.auth-hint--info {
  text-align: left;
  line-height: 1.5;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--badge-gold-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-hint--info a {
  color: var(--text-gold);
}

.auth-code {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-hover);
  border-radius: 4px;
  color: var(--text-gold);
  word-break: break-all;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.auth-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.auth-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.auth-tab.is-active {
  background: var(--bg-surface);
  color: var(--text-gold);
  box-shadow: inset 0 -2px 0 var(--gold-500);
}

.auth-panel.is-hidden {
  display: none;
}

.auth-secondary {
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gold);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.auth-secondary:hover:not(:disabled) {
  background: var(--badge-gold-bg);
  border-color: var(--gold-500);
}

.auth-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
