* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #0b1020;
  color: #ffffff;
  min-height: 100vh;
}

a {
  color: #7dd3fc;
  text-decoration: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 35%),
    linear-gradient(135deg, #0b1020, #111827 50%, #0f172a);
  z-index: -1;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px;
}

.brand-card {
  padding: 40px;
}

.brand-card h1 {
  font-size: 52px;
  margin-bottom: 10px;
}

.brand-card p {
  color: #cbd5e1;
  font-size: 18px;
}

.logo {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 22px;
}

.logo.small {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.auth-card,
.panel,
.sidebar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.auth-card {
  padding: 32px;
}

.auth-card h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.subtitle {
  color: #cbd5e1;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #dbeafe;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.full {
  width: 100%;
}

.message {
  margin-top: 16px;
  min-height: 22px;
  font-size: 14px;
  color: #fda4af;
}

.message.success {
  color: #86efac;
}

.bottom-link {
  margin-top: 20px;
  color: #cbd5e1;
  text-align: center;
}

.dashboard-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 25%),
    linear-gradient(135deg, #0b1020, #111827 50%, #0f172a);
}

.sidebar {
  margin: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-sub {
  color: #94a3b8;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0;
}

.menu a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
}

.menu a.active {
  background: rgba(255,255,255,0.08);
}

.main {
  padding: 24px;
}

.topbar {
  margin-bottom: 24px;
}

.topbar p {
  color: #94a3b8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.panel {
  padding: 24px;
}

.user-box {
  color: #dbeafe;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .auth-shell,
  .dashboard-wrap,
  .grid {
    grid-template-columns: 1fr;
  }
}

.analysis-section {
  margin-top: 28px;
}

.analysis-panel {
  padding: 28px;
}

.analysis-subtitle {
  color: #94a3b8;
  margin-bottom: 20px;
}

.upload-box {
  margin-bottom: 20px;
}

.upload-box input[type="file"] {
  display: none;
}

.upload-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  color: #e2e8f0;
}

.upload-label span {
  font-size: 18px;
  font-weight: 700;
}

.upload-label small {
  color: #94a3b8;
  font-size: 13px;
}

.image-preview-wrap {
  margin-bottom: 20px;
}

.image-preview {
  max-width: 100%;
  max-height: 420px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.analysis-actions {
  margin-bottom: 20px;
}

.analysis-result {
  margin-top: 16px;
}

.result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: #94a3b8;
  font-weight: 700;
  min-width: 120px;
}

.full-row {
  display: block;
}

.full-row p {
  margin-top: 8px;
  color: #e2e8f0;
  line-height: 1.6;
}

.hidden {
  display: none;
}
