@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #172033;
  --muted: #718096;
  --line: #e5eaf2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --navy: #17233f;
  --cyan: #1fa6a1;
  --cyan-dark: #147a78;
  --coral: #f07d63;
  --shadow: 0 18px 50px rgba(23, 32, 51, .10);
}

html[data-theme="sunset"] {
  --navy: #3a234d;
  --cyan: #e46f61;
  --cyan-dark: #b94e55;
  --canvas: #fff7f3;
  --line: #f0deda;
  --shadow: 0 18px 50px rgba(86, 43, 61, .12);
}

html[data-theme="forest"] {
  --navy: #183c3a;
  --cyan: #4aa889;
  --cyan-dark: #287b68;
  --canvas: #f2f8f4;
  --line: #d8e9df;
}

html[data-theme="midnight"] {
  --ink: #edf3ff;
  --muted: #a7b4c9;
  --line: #32435e;
  --surface: #202e49;
  --canvas: #111b2e;
  --navy: #0b1425;
  --cyan: #70a9ff;
  --cyan-dark: #4d83d4;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

html, body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--ink);
}

body {
  background: var(--canvas) !important;
}

h1, h2, h3, .navbar-brand, .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.navbar, .header {
  background: var(--navy) !important;
  box-shadow: 0 8px 28px rgba(23, 35, 63, .18) !important;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  box-shadow: 0 7px 18px rgba(31, 166, 161, .28);
  font-size: 18px;
}

.brand-name {
  font: 600 17px 'Space Grotesk', sans-serif;
  letter-spacing: .01em;
}

.brand-tagline {
  display: block;
  margin-top: 1px;
  color: #a9b9cf;
  font: 500 9px 'Poppins', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; }
}

.sidebar {
  background: #202b47 !important;
  box-shadow: 8px 0 24px rgba(23, 32, 51, .08);
}

.sidebar-item, .side-link {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sidebar-item:hover, .side-link:hover {
  background: rgba(31, 166, 161, .16) !important;
  color: #fff !important;
  transform: translateX(3px);
}

.sidebar-item.active, .side-link.active {
  background: rgba(31, 166, 161, .22) !important;
  color: #76e0d4 !important;
  border-color: var(--cyan) !important;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

.btn-success, .btn-primary, .btn-info {
  background: var(--cyan) !important;
  color: #fff !important;
}

.btn-success:hover, .btn-primary:hover, .btn-info:hover {
  background: var(--cyan-dark) !important;
}

.btn-danger {
  background: var(--coral) !important;
}

.theme-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-select, .language-toggle {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 600 12px 'Poppins', sans-serif;
  cursor: pointer;
}

.theme-select { padding: 0 8px; }
.theme-select option { color: #172033; }
.language-toggle { padding: 0 10px; }
.language-toggle:hover { background: rgba(255, 255, 255, .2); }

html[data-theme="midnight"] .card,
html[data-theme="midnight"] .content-section,
html[data-theme="midnight"] .stat-card,
html[data-theme="midnight"] .project-card,
html[data-theme="midnight"] .tool-card,
html[data-theme="midnight"] .filters-bar,
html[data-theme="midnight"] .pricing-card,
html[data-theme="midnight"] .tickets-container {
  background: var(--surface) !important;
  color: var(--ink);
}

.card, .content-section, .stat-card, .tickets-container, .pricing-card, .tool-card, .project-card, .filters-bar {
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #e7f8f5 100%) !important;
  border-color: #cdebe6 !important;
  box-shadow: var(--shadow);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 15% 15%, rgba(31, 166, 161, .17), transparent 30%), linear-gradient(135deg, #f5f7fb, #eaf4f3);
}

.auth-shell {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 28px 80px rgba(23, 32, 51, .16);
  backdrop-filter: blur(18px);
}

.auth-intro {
  position: relative;
  padding: 56px;
  color: #fff;
  background: linear-gradient(145deg, #17233f, #245b68);
  overflow: hidden;
}

.auth-intro::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border: 42px solid rgba(118, 224, 212, .22);
  border-radius: 50%;
}

.auth-kicker {
  color: #76e0d4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 430px;
  margin: 28px 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
}

.auth-intro p {
  max-width: 430px;
  color: #c9e3e4;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 42px;
  list-style: none;
  color: #e7f8f5;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-points i { color: #76e0d4; }

.auth-card {
  padding: 50px 46px;
  background: #fff;
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-subtitle {
  margin-bottom: 28px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-label {
  display: grid;
  gap: 8px;
  color: #354052;
  font-size: 14px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8e0eb;
  border-radius: 10px;
  outline: none;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 166, 161, .13);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
  cursor: pointer;
  font: 500 15px 'Poppins', sans-serif;
  transition: transform .2s, background .2s;
}

.auth-submit:hover { background: var(--cyan-dark); transform: translateY(-2px); }

.auth-foot {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.auth-foot a { color: var(--cyan-dark); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-message { min-height: 20px; color: var(--coral); font-size: 13px; }

@media (max-width: 760px) {
  .auth-page { padding: 16px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { padding: 34px 28px; }
  .auth-intro h1 { margin-top: 18px; font-size: 36px; }
  .auth-points { margin-top: 24px; }
  .auth-card { padding: 32px 26px; }
}
