:root {
  --bg-top: #fff5da;
  --bg-bottom: #eef6ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: #f7fbff;
  --ink: #21314d;
  --muted: #60718a;
  --line: #dbe5f0;
  --brand: #0c7184;
  --brand-dark: #084c5b;
  --accent: #ff8a3d;
  --accent-dark: #dc6217;
  --success: #1d9a73;
  --warning: #e9a822;
  --danger: #d6545e;
  --shadow-lg: 0 26px 60px rgba(20, 46, 88, 0.14);
  --shadow-md: 0 16px 34px rgba(24, 54, 94, 0.12);
  --shadow-sm: 0 8px 22px rgba(31, 61, 103, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 77, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(17, 125, 146, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 42%, #f8fbff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

body::before {
  width: 260px;
  height: 260px;
  top: 82px;
  right: -70px;
  background: rgba(255, 138, 61, 0.18);
}

body::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: 40px;
  background: rgba(12, 113, 132, 0.14);
}

a {
  color: var(--brand);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(8, 76, 91, 0.97), rgba(12, 113, 132, 0.95) 55%, rgba(255, 138, 61, 0.88));
  box-shadow: 0 14px 36px rgba(8, 49, 59, 0.2);
}

.site-navbar .container-fluid {
  max-width: 1380px;
  padding-left: 22px;
  padding-right: 22px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  padding: 14px 0;
  color: #fff !important;
}

.site-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-brand-copy small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.navbar-default.site-navbar .navbar-nav > li > a,
.navbar-default.site-navbar .navbar-nav > li > a:focus,
.navbar-default.site-navbar .navbar-nav > li > a:hover,
.navbar-default.site-navbar .navbar-brand {
  color: #fff;
}

.navbar-default.site-navbar .navbar-nav > li > a {
  margin: 14px 5px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.navbar-default.site-navbar .navbar-nav > li > a:hover,
.navbar-default.site-navbar .navbar-nav > li.open > a,
.navbar-default.site-navbar .navbar-nav > li.open > a:focus,
.navbar-default.site-navbar .navbar-nav > li.open > a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.navbar-default.site-navbar .navbar-toggle {
  margin-top: 20px;
  margin-right: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
}

.navbar-default.site-navbar .navbar-toggle .icon-bar {
  background: #fff;
}

.navbar-default.site-navbar .navbar-collapse,
.navbar-default.site-navbar .navbar-form {
  border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  min-width: 240px;
  margin-top: 4px;
  padding: 10px 0;
  border: 1px solid rgba(12, 113, 132, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.dropdown-menu > li > a {
  padding: 11px 18px;
  color: var(--ink);
  white-space: normal;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: linear-gradient(90deg, rgba(12, 113, 132, 0.1), rgba(255, 138, 61, 0.12));
  color: var(--brand-dark);
}

.dropdown-menu .divider {
  margin: 7px 14px;
  background-color: rgba(96, 113, 138, 0.18);
}

.app-main {
  position: relative;
  z-index: 1;
  padding: 34px 0 18px;
}

.container {
  position: relative;
}

.hero-card,
.auth-showcase,
.info-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 128, 0.45), transparent 28%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 113, 132, 0.12);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 14px;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

.hero-text {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.86));
  box-shadow: 0 22px 44px rgba(27, 58, 98, 0.14);
}

.hero-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.hero-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 113, 132, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 24px;
}

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

.info-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-section,
.landing-section {
  padding: 10px 0 24px;
}

.auth-showcase {
  height: 100%;
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(8, 76, 91, 0.96), rgba(12, 113, 132, 0.92) 60%, rgba(255, 138, 61, 0.88));
  color: #fff;
}

.auth-showcase h1 {
  margin: 16px 0 14px;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.auth-showcase p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
}

.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffd072;
  box-shadow: 0 0 0 5px rgba(255, 208, 114, 0.16);
}

.auth-panel.panel {
  overflow: hidden;
}

.auth-panel .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 138, 61, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
}

.quick-link:hover,
.quick-link:focus {
  background: rgba(255, 138, 61, 0.2);
  color: var(--accent-dark);
}

.panel {
  overflow: hidden;
  margin-bottom: 28px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.panel-heading {
  border-bottom: 0 !important;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel-body {
  padding: 26px 24px;
}

.panel-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(33, 49, 77, 0.08);
  background: rgba(247, 251, 255, 0.7);
}

.panel-primary > .panel-heading {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.panel-success > .panel-heading {
  background: linear-gradient(135deg, #13785a, var(--success));
  color: #fff;
}

.panel-warning > .panel-heading {
  background: linear-gradient(135deg, #b76c08, var(--warning));
  color: #fff;
}

.panel-danger > .panel-heading {
  background: linear-gradient(135deg, #b33846, var(--danger));
  color: #fff;
}

.form-horizontal .control-label,
label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 18px;
}

.form-control {
  height: 46px;
  border: 1px solid rgba(96, 113, 138, 0.2);
  border-radius: 14px;
  box-shadow: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea.form-control {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.form-control:focus {
  border-color: rgba(12, 113, 132, 0.45);
  box-shadow: 0 0 0 4px rgba(12, 113, 132, 0.12);
  background: #fff;
}

input[readonly].form-control,
textarea[readonly].form-control,
select[disabled].form-control,
input[disabled].form-control {
  background: #f5f8fc;
  color: #4d5e76;
}

select.form-control {
  padding-right: 34px;
}

.checkbox label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

legend {
  margin: 14px 0 22px;
  border-bottom: 1px solid rgba(96, 113, 138, 0.16);
}

.help-block {
  color: var(--danger);
  font-weight: 600;
}

.btn {
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 61, 103, 0.14);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.btn-success {
  background: linear-gradient(135deg, #13785a, var(--success));
}

.btn-warning {
  background: linear-gradient(135deg, #c2790c, var(--warning));
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #b33846, var(--danger));
}

.btn-default,
.btn-secondary {
  background: linear-gradient(135deg, #dbe6f2, #f7fbff);
  color: var(--ink);
}

.alert {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  color: #0f5e4a;
  background: linear-gradient(135deg, rgba(29, 154, 115, 0.14), rgba(255, 255, 255, 0.96));
}

.alert-danger {
  color: #7e2630;
  background: linear-gradient(135deg, rgba(214, 84, 94, 0.14), rgba(255, 255, 255, 0.96));
}

.alert-warning {
  color: #8a5a0e;
  background: linear-gradient(135deg, rgba(233, 168, 34, 0.16), rgba(255, 255, 255, 0.96));
}

.table {
  margin-bottom: 0;
  background: var(--surface-strong);
}

.table > thead > tr > th {
  border-bottom: 0;
  background: #edf4fb;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table > thead > tr > th,
.table > tbody > tr > td {
  padding: 13px 12px;
  vertical-align: middle;
  border-top: 1px solid rgba(219, 229, 240, 0.88);
}

.table-hover > tbody > tr:hover {
  background: rgba(12, 113, 132, 0.06);
}

.table-bordered {
  border: 1px solid rgba(219, 229, 240, 0.88);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border: 1px solid rgba(219, 229, 240, 0.88);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 6px 0 34px;
}

.site-footer__inner {
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.text-center .hero-logo-wrap {
  margin-bottom: 18px;
}

.panel-body > .table {
  border-radius: 14px;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .container {
    width: 1180px;
  }
}

@media (max-width: 991px) {
  .site-navbar {
    position: relative;
  }

  .hero-title,
  .auth-showcase h1 {
    font-size: 31px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  body::before,
  body::after {
    display: none;
  }

  .app-main {
    padding-top: 22px;
  }

  .site-navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .site-brand {
    padding: 12px 0;
  }

  .site-brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-brand-copy strong {
    font-size: 14px;
  }

  .site-brand-copy small {
    font-size: 10px;
  }

  .navbar-default.site-navbar .navbar-nav > li > a {
    margin: 6px 0;
  }

  .hero-card,
  .auth-showcase,
  .panel-body,
  .panel-heading,
  .site-footer__inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-card {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-logo-wrap {
    width: 170px;
    height: 170px;
    margin-bottom: 22px;
  }

  .hero-title,
  .auth-showcase h1 {
    font-size: 27px;
  }

  .hero-text {
    font-size: 15px;
  }

  .panel .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
