/* Login / auth screens — ours, skinned to the client's design tokens.
   Loaded after verstka/styles.css, so var(--accent) etc. are already defined. */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');
.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.auth-wrap {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 433px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-main, #d5e4e8);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.auth-logo {
  height: 40px;
  width: auto;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main, #1e293b);
  text-align: center;
}

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

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
}

.field input[type="email"],
.field input[type="password"] {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border-main, #d5e4e8);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-main, #1e293b);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input[type="email"]:focus,
.field input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-light) 35%, transparent);
}

.auth-form .btn.btn-primary {
  width: 100%;
  padding: 11px 25px;
 }

.alert.alert-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger, #f97373) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--danger, #f97373) 40%, transparent);
  color: var(--danger, #f97373);
  font-size: 14px;
}
