:root{
  --blue:#212D55;
  --green:#2E643E;
  --bg:#F4F6F8;
  --card:#FFFFFF;
  --text:#1D2433;
  --text-light:#697386;
  --muted:#697386;
  --radius-sm:12px;
  --radius-md:18px;
  --radius-lg:24px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

.login-page {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(46,100,62,.18), transparent 32%),
    linear-gradient(145deg, #212D55 0%, #0f1834 42%, #f4f6f4 42%);
  color: var(--text);
}

.login-page::before {
  content: "";
  position: fixed;
  top: 60px;
  left: 50px;
  width: 430px;
  height: 430px;
  background-image: url("../img_layout/login_logo_background.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.login-brand {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.login-brand img {
  max-width: 64px;
  max-height: 64px;
}

.login-heading {
  text-align: left;
  margin-bottom: 28px;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--blue);
}

.login-heading p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.login-form label {
  display: block;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 56px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid #dfe5df;
  border-radius: 16px;
  background: #f8faf8;
  font-size: 17px;
  box-sizing: border-box;
}

.login-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,100,62,.12);
}

.login-options {
  margin: 8px 0 24px;
}

.remember-switch {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  color: var(--muted);
}

.remember-switch input {
  display: none;
}

.remember-switch span {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d7ddd7;
  position: relative;
  flex: 0 0 auto;
}

.remember-switch span:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: .2s;
}

.remember-switch input:checked + span {
  background: var(--green);
}

.remember-switch input:checked + span:before {
  transform: translateX(18px);
}

.login-button {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--green);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(46,100,62,.25);
}

.login-button:active {
  transform: translateY(1px);
}


.app-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: Arial, sans-serif;
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 78px;
  box-sizing: border-box;
}

.app-header {
  height: 82px;
  padding: 0 16px;
  background: linear-gradient(145deg, #212D55, #101936);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.app-logo img {
  max-width: 48px;
  max-height: 48px;
}

.app-header-title {
  flex: 1;
  text-align: left;
}

.app-header-title strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}

.app-header-title span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: .75;
}

.app-icon-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.app-icon-btn img {
  max-width: 28px;
  max-height: 28px;
}

.app-main {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  box-sizing: border-box;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.mode-switch a {
  min-height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  font-size: 15px;
}

.mode-switch a.active {
  background: var(--green);
  color: white;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

.dashboard-card {
  position: relative;
  min-height: 86px;
  padding: 16px 46px 16px 14px;
  box-sizing: border-box;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 0 8px 8px 0;
  background: var(--green);
}

.dashboard-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(46,100,62,.10);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 25px;
}

.dashboard-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.dashboard-card small {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.3;
}

.dashboard-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  opacity: .65;
  font-size: 22px;
}

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: linear-gradient(145deg, #212D55, #101936);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 30;
  box-shadow: 0 -8px 24px rgba(0,0,0,.16);
}

.app-bottom-nav a {
  color: white;
  text-decoration: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font-size: 11px;
  opacity: .78;
}

.app-bottom-nav a i {
  font-size: 20px;
}

.app-bottom-nav a.active {
  color: #9bd18d;
  opacity: 1;
  font-weight: 700;
}



.app-main-list {
  padding-bottom: 90px;
}

.page-header-card {
  background: linear-gradient(145deg, #212D55, #101936);
  color: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.page-header-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
}

.page-header-card p {
  margin: 0;
  opacity: .75;
  font-size: 14px;
}

.search-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.article-search-form {
  display: grid;
  gap: 14px;
}

.article-search-form label {
  display: block;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.article-search-form input[type="text"] {
  width: 100%;
  height: 52px;
  margin-top: 7px;
  padding: 0 15px;
  border: 1px solid #dfe5df;
  border-radius: 15px;
  background: #f8faf8;
  font-size: 16px;
  box-sizing: border-box;
}

.article-search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,100,62,.12);
}

.search-options {
  margin-top: 2px;
}

.search-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  box-sizing: border-box;
}

.btn-primary {
  border: 0;
  background: var(--green);
  color: white;
  box-shadow: 0 12px 26px rgba(46,100,62,.22);
}

.btn-secondary {
  padding: 0 18px;
  background: #eef2ee;
  color: var(--blue);
}

.result-list {
  display: grid;
  gap: 12px;
}

.article-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  box-sizing: border-box;
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 0 8px 8px 0;
  background: var(--green);
}

.article-code {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(46,100,62,.10);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}

.article-info {
  text-align: left;
  min-width: 0;
}

.article-info strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text);
}

.article-info span {
  display: block;
  margin-top: 4px;
  color: var(--text-light);
  font-size: 13px;
}

.article-info small {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: 12px;
}

.article-status {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--blue);
}

.article-status span {
  font-size: 11px;
  font-weight: 800;
  background: rgba(46,100,62,.10);
  color: var(--green);
  padding: 5px 8px;
  border-radius: 999px;
}

.article-status i {
  font-size: 22px;
  opacity: .6;
}

.article-card.is-inactive {
  opacity: .55;
}

.article-card.is-inactive::before {
  background: #a4a9a4;
}

.article-card.is-inactive .article-code {
  background: #eef0ee;
  color: #7b817b;
}

.article-card.is-inactive .article-status span {
  background: #eef0ee;
  color: #7b817b;
}

.empty-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: left;
}

.empty-card strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 6px;
}

.empty-card span {
  display: block;
  color: var(--text-light);
  font-size: 14px;
}



@media (min-width: 760px) {
  .article-search-form {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .search-options {
    grid-column: 1 / 2;
  }

  .search-actions {
    grid-column: 2 / 3;
  }

  .result-list {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media (min-width: 700px) {
  .app-shell {
    padding-bottom: 0;
  }

  .app-header {
    height: 92px;
    padding: 0 28px;
  }

  .app-main {
    padding: 28px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .dashboard-card {
    min-height: 126px;
    padding: 24px 56px 24px 20px;
  }

  .dashboard-card-wide {
    grid-column: 1 / -1;
  }

  .app-bottom-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-page::before {
    width: 300px;
    height: 300px;
    top: 45px;
    left: -25px;
  }

  .login-shell {
    padding: 18px;
    place-items: end center;
  }

  .login-card {
    padding: 26px;
    border-radius: 26px 26px 0 0;
    max-width: none;
  }

  .login-heading h1 {
    font-size: 26px;
  }
}