:root {
  --ful-ink: #1d2b3a;
  --ful-muted: #6f7f90;
  --ful-blue: #234f8f;
  --ful-green: #1f8a5b;
  --ful-gold: #c69a32;
  --ful-surface: #ffffff;
  --ful-soft: #f5f8fb;
  --ful-border: #e4eaf0;
}

body {
  background: #f4f7fb;
  color: var(--ful-ink);
}

.authentication-wrapper {
  min-height: 100vh;
  align-items: center;
}

.ful-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(35, 79, 143, 0.13), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(31, 138, 91, 0.12), transparent 26%),
    radial-gradient(circle at 70% 88%, rgba(198, 154, 50, 0.14), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #fbfdfc 52%, #fffaf0 100%);
}

.ful-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 79, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 79, 143, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.ful-auth-page .authentication-wrapper.authentication-basic {
  overflow: auto;
  padding: 24px 0;
}

.ful-auth-page .authentication-wrapper.authentication-basic .authentication-inner {
  max-width: min(960px, calc(100vw - 32px));
}

.ful-auth-page .authentication-wrapper.authentication-basic .authentication-inner::before,
.ful-auth-page .authentication-wrapper.authentication-basic .authentication-inner::after {
  display: none;
}

.ful-auth-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(35, 79, 143, 0.08);
  border-radius: 8px;
  background: var(--ful-surface);
  box-shadow: 0 24px 70px rgba(29, 43, 58, 0.13);
}

.ful-auth-brand {
  position: relative;
  padding: 42px;
  background:
    linear-gradient(145deg, rgba(17, 55, 98, 0.96), rgba(31, 107, 85, 0.94)),
    linear-gradient(90deg, rgba(198, 154, 50, 0.22), transparent);
  color: #fff;
}

.ful-auth-brand::after {
  content: "";
  position: absolute;
  inset: auto 28px 24px auto;
  width: 128px;
  height: 128px;
  background: url("../img/logo.png") no-repeat center / contain;
  opacity: 0.11;
}

.ful-auth-logo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 26px;
}

.ful-auth-logo img {
  max-width: 64px;
  max-height: 64px;
}

.ful-auth-title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.ful-auth-copy {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 30px;
}

.ful-auth-meta {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.ful-auth-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.ful-auth-meta-item i {
  color: #ffd36c;
}

.ful-auth-panel {
  padding: 42px;
}

.ful-auth-kicker {
  color: var(--ful-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ful-auth-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--ful-ink);
  margin-bottom: 6px;
}

.ful-auth-subtitle {
  color: var(--ful-muted);
  margin-bottom: 24px;
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.auth-link-row a,
.auth-secondary-link {
  font-weight: 600;
}

.form-control,
.form-select,
select.form-control {
  border-color: var(--ful-border);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
  border-color: rgba(31, 138, 91, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(31, 138, 91, 0.12);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--ful-green);
  border-color: var(--ful-green);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #18764c;
  border-color: #18764c;
}

.layout-navbar {
  border: 1px solid rgba(67, 89, 113, 0.08);
  box-shadow: 0 10px 30px rgba(67, 89, 113, 0.08);
}

.layout-menu {
  border-right: 1px solid rgba(67, 89, 113, 0.08);
}

#layout-menu .app-brand.demo {
  position: relative;
  max-height: 120px;
  width: calc(100% - 24px);
  box-sizing: border-box;
  margin: 14px 12px 8px;
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 79, 143, 0.14), rgba(31, 138, 91, 0.13)),
    #f9fbff;
  box-shadow: 0 16px 32px rgba(35, 79, 143, 0.12);
}

#layout-menu .app-brand.demo::before {
  content: "";
  position: absolute;
  inset: auto -18px -34px auto;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(198, 154, 50, 0.16);
  pointer-events: none;
}

#layout-menu .app-brand.demo::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ful-blue), var(--ful-green), var(--ful-gold));
}

#layout-menu .app-brand.demo img,
#layout-menu .app-brand.demo .layout-menu-toggle {
  position: relative;
  z-index: 2;
}

#layout-menu .app-brand.demo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto !important;
  max-height: 78px;
  object-fit: contain;
  filter: none;
}

#layout-menu .app-brand.demo .layout-menu-toggle {
  color: var(--ful-blue);
}

.menu-vertical .menu-inner > .menu-item > .menu-link {
  margin: 2px 12px;
  border-radius: 8px;
}

.menu-item.active > .menu-link,
.menu-item.active > .menu-link:not(.menu-toggle) {
  background: rgba(31, 138, 91, 0.12) !important;
  color: var(--ful-green) !important;
}

.card {
  border: 1px solid rgba(67, 89, 113, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(67, 89, 113, 0.07);
}

.card-title {
  font-weight: 700;
}

.table {
  color: var(--ful-ink);
}

.table thead th {
  color: var(--ful-muted);
  font-size: 12px;
  text-transform: uppercase;
  background: var(--ful-soft);
  letter-spacing: 0;
}

.badge {
  border-radius: 6px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .ful-auth-card {
    grid-template-columns: 1fr;
  }

  .ful-auth-brand {
    padding: 28px;
  }

  .ful-auth-panel {
    padding: 28px;
  }

  .ful-auth-title {
    font-size: 24px;
  }
}
