* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

/* AUTH PAGES */
.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  background: #020617;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15,23,42,0.8);
  max-width: 1000px;
  width: 100%;
}

.auth-left h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  color: #9ca3af;
  margin-bottom: 20px;
}

.features {
  list-style: none;
  margin-bottom: 20px;
}

.features li::before {
  content: "• ";
  color: #38bdf8;
}

.features li {
  margin-bottom: 6px;
}

.steps {
  list-style: decimal;
  margin-left: 20px;
  color: #9ca3af;
}

.auth-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.form {
  margin-top: 20px;
}

.form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #cbd5f5;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

input:focus, select:focus {
  outline: 1px solid #38bdf8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn.primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn.primary:hover {
  background: #0ea5e9;
}

.btn.secondary {
  background: #1f2937;
  color: #e5e7eb;
}

.btn.secondary:hover {
  background: #111827;
}

.small-link {
  margin-top: 12px;
  font-size: 13px;
  color: #9ca3af;
}

.small-link a {
  color: #38bdf8;
}

/* MAIN PAGES */
.page-main {
  min-height: 100vh;
  background: #020617;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #1f2937;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #9ca3af;
}

.layout {
  padding: 24px;
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 24px;
}

.panel {
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 20px;
}

.panel h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* PROJECT LIST */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-list-item {
  background: #0b1120;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-list-item h3 {
  font-size: 16px;
}

.project-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* PHOTOS */
.photo-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.photo-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

/* IA IMAGE */
.ia-image {
  margin-top: 16px;
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  border: 1px solid #1f2937;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 1fr;
  }
}
