/* Auth pages — standalone login / register */

body { background: #e5dccb; }

.auth-page {
  min-height: calc(100vh - 68px);
  background: #e5dccb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 0;
}

.auth-page-inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.auth-logo {
  display: block;
  text-align: center;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #161B0A;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.auth-logo sup { font-size: 0.55em; color: #b49c77; vertical-align: super; }

/* Card */
.auth-card {
  background: #FFFFFF;
  border: 1px solid rgba(200,169,110,0.22);
  border-radius: 16px;
  padding: 36px 40px 40px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(22,27,10,0.10), 0 2px 8px rgba(22,27,10,0.06);
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #161B0A;
  margin-bottom: 5px;
  line-height: 1.2;
}

.auth-card-sub {
  font-size: 0.88rem;
  color: rgba(22,27,10,0.45);
  margin-bottom: 28px;
}

/* Form */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #425b3e;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  background: #F7F4EE;
  border: 1px solid rgba(22,27,10,0.12);
  border-radius: 6px;
  color: #161B0A;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 180ms, box-shadow 180ms;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(22,27,10,0.25); }
.form-input:focus {
  border-color: #b49c77;
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}
.form-input.is-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

.form-hint {
  font-size: 0.72rem;
  color: rgba(22,27,10,0.35);
  margin-top: 4px;
}

/* Forgot password link */
.forgot-link {
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  color: rgba(22,27,10,0.38);
  text-decoration: none;
  transition: color 180ms;
}
.forgot-link:hover { color: #425b3e; }

/* Password strength */
.pw-strength {
  height: 3px;
  border-radius: 2px;
  background: rgba(22,27,10,0.08);
  margin-top: 6px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 250ms ease, background 250ms ease;
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.86rem;
  margin-bottom: 20px;
  line-height: 1.55;
}
.alert-error {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  color: #a93226;
}
.alert-success {
  background: rgba(74,92,42,0.08);
  border: 1px solid rgba(74,92,42,0.25);
  color: #425b3e;
}

/* Submit button */
.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Switch link */
.auth-divider {
  text-align: center;
  margin: 22px 0 0;
  font-size: 0.84rem;
  color: rgba(22,27,10,0.4);
}
.auth-divider a {
  color: #b49c77;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms;
}
.auth-divider a:hover { color: #425b3e; }

/* Footer */
.auth-footer {
  width: 100%;
  text-align: center;
  padding: 28px 16px 20px;
  margin-top: auto;
  font-size: 0.75rem;
  color: rgba(22,27,10,0.28);
}
.auth-footer a {
  color: rgba(22,27,10,0.35);
  text-decoration: none;
  transition: color 180ms;
}
.auth-footer a:hover { color: #425b3e; }
.auth-footer-sep { margin: 0 6px; opacity: 0.5; }

@media (max-width: 520px) {
  .auth-card { padding: 26px 22px 28px; }
}
