﻿:root {
  --page-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #4b5563;
  --line-soft: #e5e7eb;
  --btn-dark: #111111;
  --btn-dark-hover: #2b2b2b;
  --danger-color: #991b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1100px, 92%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  background: #111111;
  color: #ffffff;
  z-index: 1000;
}

.navbar {
  background: #ffffff;
  box-shadow: none;
  border-bottom: 1px solid var(--line-soft);
}

.navbar .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand-logo,
.navbar .brand-logo i,
.navbar ul a,
.navbar .sidenav-trigger {
  color: var(--text-main);
}

.navbar .brand-logo {
  position: static;
  transform: none;
  font-weight: 500;
  font-size: 1.35rem;
}

.sidenav li > a {
  color: var(--text-main);
}

.headline {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.headline-sm {
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
}

.hero-row {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.hero-intro {
  max-width: 52ch;
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 2rem;
}

.btn,
.btn-large,
.btn-small {
  background: var(--btn-dark);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: none;
}

.btn:hover,
.btn-large:hover,
.btn-small:hover {
  background: var(--btn-dark-hover);
  box-shadow: none;
}

.btn-flat {
  color: var(--text-main);
}

.card {
  background: #ffffff;
  box-shadow: none;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.card .card-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.auth-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.auth-card .card-content {
  padding: 2rem 2rem 1.25rem;
}

.metric-card .card-content {
  padding: 1.35rem 1.5rem;
}

.metric-value {
  margin: 0.4rem 0 0;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--text-main);
}

.full-width {
  width: 100%;
}

.input-field input:focus,
.input-field textarea:focus {
  border-bottom: 1px solid #111111 !important;
  box-shadow: 0 1px 0 0 #111111 !important;
}

.input-field input:focus + label,
.input-field textarea:focus + label {
  color: #111111 !important;
}

.helper-text.error-text {
  color: var(--danger-color);
}

input.invalid,
textarea.invalid {
  border-bottom: 1px solid var(--danger-color) !important;
  box-shadow: 0 1px 0 0 var(--danger-color) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.table-responsive {
  overflow-x: auto;
}

.modal .modal-content p {
  margin: 0.45rem 0;
}

.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 1rem 0;
}

@media only screen and (max-width: 992px) {
  .navbar .brand-logo {
    font-size: 1.05rem;
  }
}

@media only screen and (max-width: 600px) {
  .hero-row {
    margin-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card .card-content {
    padding: 1.5rem 1.1rem 1rem;
  }
}
