/* Стили для страницы входа Devise */
body { background: transparent; }

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  box-sizing: border-box;
}

.auth-card h1 {
  margin: 0 0 18px 0;
  font-size: 20px;
  color: var(--text);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input[type="email"], .field input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(14,30,50,0.06);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  box-sizing: border-box;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .auth-card {
    padding: 20px;
    margin: 0 12px;
    border-radius: 12px;
  }

  .auth-card h1 { font-size: 18px; }

  .btn.primary { padding: 12px 14px; font-size: 16px; }
}

/* Better spacing for desktop */
@media (min-width: 481px) {
  .auth-page { padding-top: 60px; }
  .auth-card { padding: 36px; }
}

.devise-links { display:flex; gap:12px; margin-top:14px; flex-wrap:wrap }
.devise-links .link-item a { color: var(--primary); text-decoration: underline; }

.field.remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions {
  margin-top: 12px;
}

.btn.primary {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  background: var(--primary);
  border-radius: calc(var(--radius) - 2px);
  color: var(--primary-contrast);
  text-align: center;
  border: none;
  cursor: pointer;
}

.notice, .alert {
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 12px;
}
.notice { background: #ecfeff; color: #064e3b; }
.alert { background: #fff1f2; color: #7f1d1d; }
