
.auth-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.auth-brand-link:hover .auth-brand-name {
  text-decoration: none; /* subtle hover feedback */
  opacity: 0.5;
}

/* Shell */
.auth-shell {
  background: #f6f8fc;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-size: 18px; /* slightly larger base type */
}

/* Card */
.auth-center-card {
  width: min(560px, 90vw);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 10px 30px rgba(20, 20, 60, 0.06);
}

/* Brand */
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; justify-content: center; }
.auth-brand-logo { width: 60px; height: 60px; border-radius: 50%; }
.auth-brand-name { font-size: 42px; margin: 0; }

/* Titles */
.auth-title { font-size: 1.8rem; margin: 12px 4px 0px; text-align: center;}
.auth-subtitle { color: var(--text-muted); margin: 0 0 18px 0; text-align: center;}

/* Forms */
.auth-form { display: grid; gap: 10px; margin-top: 8px; }
.auth-form label { font-weight: 600; }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7dce6;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
}
.auth-form input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(91,61,245,0.15); }

/* Read-only email display */
.readonly-field {
  padding: 10px 12px;
  background: #f3f5fb;
  border: 1px solid #e3e7f2;
  border-radius: 8px;
  color: #2b2f3a;
}

/* Buttons */
.btn { margin-top: 10px; display: inline-block; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 1rem;}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-hover); cursor: pointer; }

/* Flash messages */
.flash-stack { margin: 10px 0 14px; display: grid; gap: 8px; }
.alert { padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; }
.alert-error { background: #fff5f5; border-color: #f5c2c7; color: #842029; }
.alert-warning { background: #fff8e6; border-color: #ffecb5; color: #664d03; }
.alert-success { background: #e6ffed; border-color: #badbcc; color: #0f5132; }
.alert-info { background: #eef6ff; border-color: #b6d4fe; color: #084298; }

.auth-small { margin-top: 20px; font-size: 14px; text-align: center;}
