/**
 * Стили страниц авторизации (Blade): фон и карточка в той же палитре, что и SPA (slate / emerald).
 */

:root {
  --auth-slate-100: #f1f5f9;
  --auth-slate-200: #e2e8f0;
  --auth-slate-300: #cbd5e1;
  --auth-slate-400: #94a3b8;
  --auth-slate-500: #64748b;
  --auth-slate-600: #475569;
  --auth-slate-900: #0f172a;
  --auth-emerald-500: #10b981;
  --auth-emerald-600: #059669;
  --auth-radius-lg: 0.75rem;
  --auth-radius-xl: 0.75rem;
  --auth-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --auth-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body.auth-body {
  margin: 0;
  min-height: 100%;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-slate-900);
  background: var(--auth-slate-100);
  -webkit-font-smoothing: antialiased;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 768px) {
  .auth-page {
    padding: 2rem;
  }
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--auth-slate-200);
  border-radius: var(--auth-radius-xl);
  box-shadow: var(--auth-shadow-md);
  padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 480px) {
  .auth-card {
    padding: 2rem 1.75rem 1.75rem;
  }
}

.auth-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--auth-slate-900);
}

.auth-card__lead {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--auth-slate-500);
}

.auth-form {
  margin-top: 1.5rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field:last-of-type {
  margin-bottom: 0;
}

.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--auth-slate-600);
  margin-bottom: 0.35rem;
}

.auth-input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--auth-slate-900);
  background: #fff;
  border: 1px solid var(--auth-slate-200);
  border-radius: var(--auth-radius-lg);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-input:hover {
  border-color: var(--auth-slate-300);
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-emerald-500);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.2);
}

.auth-input::placeholder {
  color: var(--auth-slate-400);
}

.auth-input--error {
  border-color: #ef4444;
}

.auth-input--error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.2);
}

.auth-error {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #b91c1c;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--auth-slate-600);
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-emerald-600);
  cursor: pointer;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--auth-emerald-500);
  border: none;
  border-radius: var(--auth-radius-lg);
  cursor: pointer;
  box-shadow: var(--auth-shadow);
  transition:
    background 0.15s ease,
    transform 0.05s ease;
}

.auth-submit:hover {
  background: var(--auth-emerald-600);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:focus-visible {
  outline: none;
  box-shadow:
    var(--auth-shadow),
    0 0 0 3px rgb(16 185 129 / 0.35);
}

.auth-foot {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-slate-200);
  font-size: 0.75rem;
  color: var(--auth-slate-500);
  text-align: center;
}
