/* ==========================================================================
   AUTH PAGE
   Layout, card, form controls and transitions for login/register screens.
   ========================================================================== */

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 22%),
    linear-gradient(180deg, #edf4fb 0%, #e2ebf6 100%);
}

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

.auth-card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.2rem;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin-bottom: 0.75rem !important;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.auth-card hr {
  margin: 1.25rem 0 1.5rem;
  border-color: rgba(148, 163, 184, 0.2);
}

.auth-card .form-label {
  margin-bottom: 0.5rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: #334155;
}

.auth-card .form-group {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.35rem !important;
}

.auth-card .input-group {
  position: relative;
  align-items: stretch;
  margin-top: 0.1rem;
}

.auth-card .input-group-text {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 2;
  min-width: auto;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2563eb;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-card .form-control {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  color: #0f172a;
  transition:
    border-color 320ms ease,
    background-color 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.auth-card .form-control::placeholder {
  color: #94a3b8;
}

.auth-card .form-control:focus {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.auth-card .input-group:focus-within .input-group-text {
  color: #1d4ed8;
}

.auth-input-action {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.auth-input-action:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.auth-input-action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.auth-card .has-input-action .form-control {
  padding-right: 3rem;
}

.auth-card .btn-primary {
  width: 100%;
  min-height: 54px;
  margin-top: 0.75rem !important;
  cursor: pointer;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.2);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.auth-card a {
  color: #2563eb;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: color 320ms ease;
}

.auth-card a:hover {
  color: #16a34a;
}

.auth-title {
  margin-bottom: 0 !important;
  text-align: left;
}

.auth-subtitle {
  margin: -0.45rem 0 0;
  color: #64748b;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 0.25rem;
}

.auth-actions {
  margin-top: 0.55rem;
}

.auth-help {
  margin: 0;
  text-align: left;
  color: #0f172a;
}

.auth-help:last-child {
  margin-top: -0.35rem;
}

/* ==========================================================================
   AUTH RESPONSIVE
   ========================================================================== */

@media (max-width: 767.98px) {
  .auth-shell {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.35rem;
    border-radius: 24px !important;
  }
}
