/* Auth pages stylesheet: login, register, reset, verify */
/* Assumes Bootstrap and (optionally) main.css are loaded */

:root {
  --auth-bg: #f8f9fc;
  --auth-card-bg: #ffffff;
  --auth-muted: #6c757d;
  --auth-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.08);
  --auth-radius: 12px;
}

html, body {
  height: 100%;
}

body.auth-page {
  background: var(--auth-bg);
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-card .auth-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  text-align: center;
}

.auth-card .brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.auth-card .auth-subtitle {
  margin-top: .25rem;
  color: var(--auth-muted);
  font-size: .9rem;
}

.auth-card .auth-body {
  padding: 1.5rem;
}

.auth-card .form-label {
  font-weight: 600;
}

.auth-card .form-control {
  padding: .6rem .75rem;
  border-radius: .5rem;
}

.auth-card .form-control:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.auth-actions .form-check-label {
  color: var(--auth-muted);
}

.auth-submit {
  margin-top: .5rem;
}

.auth-submit .btn {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: .5rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
  color: var(--auth-muted);
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e9ecef;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.auth-social .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .5rem;
}

.auth-footer {
  padding: 1rem 1.5rem 1.25rem 1.5rem;
  text-align: center;
  color: var(--auth-muted);
  font-size: .9rem;
}

.auth-footer a {
  text-decoration: none;
}

/* Small helper blocks (errors/hints) */
.form-text.muted { color: var(--auth-muted); }

.invalid-feedback { display: block; }

/* Mini logo placeholder */
.auth-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c2efb 0%, #a670ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 420px) {
  .auth-card { max-width: 100%; }
  .auth-social { grid-template-columns: 1fr; }
  .auth-actions { flex-direction: column; align-items: stretch; }
}
