html {
  font-size: 15px;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI Variable Text", sans-serif;
  color: #401010;
}

.user-shell,
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 232, 180, 0.32), transparent 24%),
    radial-gradient(circle at bottom right, rgba(184, 0, 24, 0.12), transparent 30%),
    linear-gradient(180deg, #fff8ef 0%, #fffbf7 52%, #fff0e0 100%);
}

.login-body {
  background:
    radial-gradient(circle at top left, rgba(255, 232, 180, 0.18), transparent 28%),
    linear-gradient(180deg, #af0018 0%, #d10018 70%, #f1542b 100%);
}

.user-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(175, 0, 24, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(102, 0, 14, 0.18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 96px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 0.95rem;
  padding: 0.25rem 0.45rem;
  border: 2px solid rgba(255, 226, 157, 0.85);
}

.user-navbar {
  padding: 0.9rem 0;
}

.user-nav {
  gap: 0.35rem;
}

.user-nav .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
}

.user-nav .nav-link:hover,
.user-nav .nav-link:focus,
.user-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.single-card {
  place-items: center;
}

.user-main {
  padding: 1.5rem 1rem 2rem;
}

.hero-panel,
.glass-card,
.login-card {
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(215, 225, 235, 0.9);
  box-shadow: 0 18px 48px rgba(9, 29, 48, 0.08);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.2rem;
}

.hero-panel.compact {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #cc9200;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.hero-panel h1,
.login-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 800;
}

.subtle {
  color: #7c4b4b;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stat-block {
  padding: 1.15rem 1.2rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(5, 18, 32, 0.08);
}

.stat-block span {
  display: block;
  color: #526173;
}

.stat-block strong {
  font-size: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
}

.glass-card {
  padding: 1.3rem;
}

.accent-card {
  background: linear-gradient(135deg, #fff0cb, #fff9ef);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.history-row,
.transaction-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(8, 24, 38, 0.08);
}

.history-row:last-child,
.transaction-row:last-child {
  border-bottom: 0;
}

.history-row p,
.transaction-row p {
  margin: 0.2rem 0 0;
  color: #526173;
}

.history-side,
.transaction-side {
  text-align: right;
  min-width: 120px;
}

.status-chip,
.points-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.status-pendingapproval {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.points-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.form-shell {
  max-width: 980px;
  margin: 0 auto;
}

.stack-gap {
  display: grid;
  gap: 1rem;
}

.helper-line {
  color: #7c4b4b;
  font-size: 0.95rem;
}

.submit-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 600;
}

.submit-progress-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(154, 52, 18, 0.2);
  border-top-color: #ea580c;
  animation: submit-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.is-submitting {
  opacity: 0.92;
}

.btn-user-primary {
  background: #c3001a;
  border-color: #c3001a;
  color: #fff;
}

.btn-user-primary:hover {
  background: #9f0016;
  border-color: #9f0016;
  color: #fff;
}

.btn-user-primary:disabled {
  background: #e0828c;
  border-color: #e0828c;
  color: #fff;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.timeline-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.feedback-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.9rem;
}

.remarks-box {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: #eff6ff;
  color: #1d4ed8;
}

.login-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 420px;
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.2rem, 3vw, 3rem);
}

.login-copy {
  color: #fff;
  max-width: 620px;
}

.login-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
}

.login-logo {
  width: min(100%, 320px);
  display: block;
  margin-bottom: 1.1rem;
  border-radius: 1.35rem;
  box-shadow: 0 22px 50px rgba(92, 0, 8, 0.28);
}

.login-card {
  padding: 2rem;
}

.login-card h2 {
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.success-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.success-card {
  width: min(100%, 560px);
  text-align: center;
  padding: 2.4rem 2rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(215, 225, 235, 0.95);
  box-shadow: 0 22px 60px rgba(9, 29, 48, 0.12);
}

.success-icon-wrap {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.success-icon {
  font-size: 2.4rem;
  font-weight: 800;
  color: #166534;
}

@media (max-width: 992px) {
  .content-grid,
  .login-scene {
    grid-template-columns: 1fr;
  }

  .login-copy {
    max-width: none;
  }

  .user-navbar .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .hero-panel,
  .section-head,
  .history-row,
  .transaction-row {
    flex-direction: column;
    align-items: stretch;
  }

  .user-main {
    padding: 1rem;
  }

  .login-scene {
    padding: 1rem;
    gap: 1rem;
  }

  .login-card,
  .glass-card,
  .hero-panel,
  .success-card {
    border-radius: 1.2rem;
  }

  .history-side,
  .transaction-side {
    text-align: left;
    min-width: 0;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
