/* ─────────────────────────────────────────────────
   Reneumind — Login & Signup shared styles
───────────────────────────────────────────────── */

:root {
  --brand:       #5C5078;
  --brand-hover: #4A3D62;
  --accent:      #469498;
  --dark:        #232136;
  --border:      #E2DCF0;
  --input-bg:    #FAFAFF;
}

/* ── Page ── */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: linear-gradient(150deg, #EEEAFF 0%, #F4F1FF 40%, #E4F5F5 100%);
  min-height: 100vh;
}

/* ── Auth logo ── */
.auth-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ── Card ── */
.auth-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(226, 220, 240, 0.7);
  box-shadow: 0 4px 6px rgba(35,33,54,0.04), 0 12px 40px rgba(35,33,54,0.09);
  padding: 36px 40px;
}

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

/* ── Form labels ── */
.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* ── Inputs ── */
.form-control {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control::placeholder { color: #B0A8C8; }

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(92, 80, 120, 0.12);
  background: #fff;
  outline: none;
}

/* ── Password toggle ── */
.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 42px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9B92B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.password-toggle:hover { color: var(--brand); }

/* ── Submit button ── */
.btn-auth {
  width: 100%;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(92, 80, 120, 0.28);
  letter-spacing: 0.01em;
}

.btn-auth:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: 0 6px 18px rgba(92, 80, 120, 0.35);
  transform: translateY(-1px);
}

.btn-auth:active:not(:disabled) { transform: translateY(0); }

.btn-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Validation feedback ── */
.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 4px;
}

/* ── Alert ── */
.auth-alert {
  border-radius: 10px;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: none;
}

.auth-alert-danger  { background: #fef2f2; color: #b91c1c; border-left: 3px solid #fca5a5; }
.auth-alert-success { background: #f0fdf4; color: #15803d; border-left: 3px solid #86efac; }
.auth-alert-warning { background: #fefce8; color: #a16207; border-left: 3px solid #fde68a; }

/* ── Divider ── */
.auth-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── Footer link ── */
.auth-footer-link {
  font-size: 0.85rem;
  text-align: center;
  color: #888;
  margin-top: 18px;
}

.auth-footer-link a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link a:hover { color: var(--brand-hover); text-decoration: underline; }

/* ── Copyright ── */
.auth-copyright {
  text-align: center;
  font-size: 0.78rem;
  color: #9B92B8;
  margin-top: 20px;
}
