:root {
  --bg-top: #f4f7f8;
  --bg-bottom: #e7eef1;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(35, 53, 70, 0.1);
  --text-main: #1f2d3a;
  --text-soft: #64748b;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --secondary: #0f766e;
  --danger: #dc2626;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text-main);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-header,
.site-footer,
.hero-panel,
.auth-card,
.dashboard-panel,
.stat-card,
.dashboard-hero {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  border-radius: 24px;
  padding: 18px 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

.brand-mark h1,
.site-footer p {
  margin: 0;
}

.brand-mark p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.header-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-layout {
  display: grid;
  gap: 24px;
}

.auth-layout {
  grid-template-columns: 1.2fr 0.9fr;
  align-items: stretch;
}

.dashboard-layout {
  grid-template-columns: 1fr;
}

.hero-panel,
.auth-card,
.dashboard-panel,
.dashboard-hero {
  border-radius: 30px;
  padding: 32px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow,
.panel-kicker,
.stat-label,
.info-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.hero-panel h2,
.dashboard-hero h2,
.panel-header h3 {
  margin: 10px 0 12px;
  line-height: 1.1;
}

.hero-panel h2,
.dashboard-hero h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.hero-copy,
.panel-header p,
.info-box p,
.site-footer,
.loading-text,
.links p,
.detail-card p,
.admin-user-card p {
  color: var(--text-soft);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-box,
.stat-card,
.detail-card,
.admin-user-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.accent-box {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(15, 118, 110, 0.06));
}

.info-box strong,
.detail-card strong,
.stat-value {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 700;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 36, 58, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  color: var(--text-main);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.login-btn,
.action-btn,
.logout-btn {
  border: none;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.login-btn,
.action-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  margin-top: 12px;
}

.logout-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #c1121f 0%, #7f1d1d 100%);
}

.login-btn:hover,
.action-btn:hover,
.logout-btn:hover {
  transform: translateY(-2px);
}

.login-btn:hover,
.action-btn:hover {
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.logout-btn:hover {
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.28);
}

.login-btn:disabled,
.action-btn:disabled,
.logout-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.error-text {
  min-height: 20px;
  color: var(--danger);
  margin-bottom: 16px;
  font-weight: 600;
}

.loading-text {
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
}

.links {
  margin-top: 28px;
}

.links p {
  margin: 0;
  font-size: 14px;
}

.links a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  border-radius: 24px;
  padding: 20px;
}

.stat-field {
  margin-top: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.panel-header {
  margin-bottom: 22px;
}

.detail-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-card h4,
.admin-user-card h4 {
  margin: 10px 0 6px;
  font-size: 1rem;
}

.detail-card p,
.admin-user-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.admin-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(37, 99, 235, 0.04));
}

.admin-grid {
  margin-top: 18px;
}

.admin-user-card {
  text-align: left;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .auth-layout,
  .dashboard-grid,
  .info-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto 20px;
    gap: 16px;
  }

  .hero-panel,
  .auth-card,
  .dashboard-panel,
  .dashboard-hero,
  .site-header,
  .site-footer {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-panel h2,
  .dashboard-hero h2 {
    font-size: 1.8rem;
  }

  .detail-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
