/* ============================================================
   Auth (login / cadastro)
   Carregado apenas nas paginas de autenticacao via {% block extra_css %}.
   ============================================================ */

.auth-wrapper {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(150deg, #e8f0fe 0%, #f0f7ff 50%, #e3f2fd 100%);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(13, 110, 253, .12);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: authFadeIn .3s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ─────────────────────────────────── */

.auth-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #f0f2f5;
}

.auth-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 200px;
  margin: 0 auto .75rem;
  object-fit: contain;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2f5e;
  margin: 0 0 .25rem;
  letter-spacing: -.3px;
}

.auth-subtitle {
  font-size: .85rem;
  color: #6c757d;
  margin: 0;
}

/* ── Form ───────────────────────────────────── */

.auth-form {
  padding: 1.5rem 2rem 1.25rem;
}

.auth-form .form-label {
  font-size: .85rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .35rem;
}

/* Input-group: icone + input (+ botao de mostrar senha) */
.auth-form .input-group {
  flex-wrap: nowrap;
}

.auth-form .input-group-text {
  background: #f7f9fc;
  border: 1px solid #dde3ea;
  color: #6c757d;
  min-width: 44px;
  justify-content: center;
}

.auth-form .form-control {
  height: 44px;
  border: 1px solid #dde3ea;
}

.auth-form .input-group > .input-group-text:first-child {
  border-radius: 8px 0 0 8px;
}

.auth-form .input-group > .form-control:last-child {
  border-radius: 0 8px 8px 0;
  border-left: 0;
}

.auth-form .input-group > .form-control:not(:last-child) {
  border-radius: 0;
  border-left: 0;
}

.auth-form .input-group > .btn:last-child {
  border-radius: 0 8px 8px 0;
  border-color: #dde3ea;
  background: #f7f9fc;
  color: #6c757d;
  min-width: 44px;
}

.auth-form .input-group > .btn:last-child:hover {
  background: #e9ecef;
  color: #495057;
}

.auth-form .input-group:focus-within > .input-group-text,
.auth-form .input-group:focus-within > .form-control,
.auth-form .input-group:focus-within > .btn {
  border-color: #0d6efd;
}

.auth-form .input-group:focus-within > .form-control {
  box-shadow: none;
}

.auth-form .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
  border-radius: 8px;
}

/* ── Botao de submit ────────────────────────── */

.btn-auth {
  height: 46px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(13, 110, 253, .25);
  transition: box-shadow .2s, transform .1s;
}

.btn-auth:hover {
  box-shadow: 0 6px 20px rgba(13, 110, 253, .35);
  transform: translateY(-1px);
}

.btn-auth:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 110, 253, .2);
}

/* ── Footer ─────────────────────────────────── */

.auth-footer {
  border-top: 1px solid #f0f2f5;
  text-align: center;
  padding: .9rem 2rem 1.1rem;
  font-size: .875rem;
  color: #6c757d;
}

.auth-footer a {
  color: #0d6efd;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}
