html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.access-page {
  min-height: 100vh;
  margin-bottom: 0;
  background:
    linear-gradient(180deg, rgba(4, 19, 31, 0.45), rgba(4, 19, 31, 0.72)),
    url("../img/backgrounds/login-background.png") center / cover no-repeat fixed;
}

.access-page header .navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px);
}

.login-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(4, 19, 31, 0.45), rgba(4, 19, 31, 0.68)),
    url("../img/backgrounds/login-background.png") center / cover no-repeat;
  color: #172033;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-brand-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #20c997, #0d6efd);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.30);
}

.login-card {
  width: min(100%, 430px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.login-header {
  margin-bottom: 28px;
  text-align: center;
}

.login-card h1 {
  margin-bottom: 6px;
  font-size: 30px;
  font-weight: 700;
}

.login-card p {
  margin: 0;
  color: #6b7280;
}

.login-card .form-label {
  font-weight: 600;
  color: #374151;
}

.login-card .form-control {
  border-radius: 8px;
  border-color: #d8dee8;
  background: rgba(255, 255, 255, 0.9);
}

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

@media (max-width: 860px) {
  .login-card {
    padding: 28px;
  }
}

.branch-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 44px;
}

.branch-card {
  width: min(100%, 760px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.branch-header {
  max-width: 560px;
  margin: 0 auto 26px;
  text-align: center;
}

.branch-kicker {
  margin: 0 0 8px;
  color: #0d6efd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.branch-header h1 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 700;
}

.branch-header p {
  margin-bottom: 0;
  color: #6b7280;
}

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

.branch-option {
  margin: 0;
}

.branch-button {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.branch-button:hover,
.branch-button:focus {
  border-color: #0d6efd;
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.16);
  transform: translateY(-1px);
}

.branch-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e7f7f2;
  color: #087f5b;
  font-weight: 700;
}

.branch-text {
  min-width: 0;
}

.branch-text strong,
.branch-text small {
  display: block;
}

.branch-text strong {
  font-size: 16px;
}

.branch-text small {
  margin-top: 3px;
  color: #6b7280;
}

.branch-action {
  padding: 8px 12px;
  border-radius: 8px;
  background: #0d6efd;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .branch-card {
    padding: 24px;
  }

  .branch-button {
    grid-template-columns: 42px 1fr;
  }

  .branch-action {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.public-page {
  margin: 0;
  background: #f5f7fb;
  color: #182033;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e8ef;
  backdrop-filter: blur(10px);
}

.public-nav {
  min-height: 78px;
}

.public-brand img {
  width: 210px;
  max-height: 58px;
  object-fit: contain;
}

.public-nav .nav-link {
  color: #15315c;
  font-weight: 600;
}

.public-nav .nav-link:hover,
.public-nav .nav-link:focus {
  color: #e4002b;
}

.public-login-button {
  border-radius: 8px;
  background: #123f91;
  border-color: #123f91;
  font-weight: 700;
}

.public-login-button:hover,
.public-login-button:focus {
  background: #e4002b;
  border-color: #e4002b;
}

.public-hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 25, 56, 0.92), rgba(8, 25, 56, 0.62), rgba(8, 25, 56, 0.18)),
    url("../img/public/hardware-hero.png") center / cover no-repeat;
  color: #ffffff;
}

.public-hero-content {
  width: min(100%, 650px);
  padding: 72px 0;
}

.public-kicker {
  margin-bottom: 14px;
  color: #ffccd5;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.public-hero h1 {
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 800;
}

.public-hero p {
  margin-bottom: 28px;
  color: #e8eef8;
  font-size: 20px;
}

.public-hero .btn,
.public-section .btn {
  border-radius: 8px;
  font-weight: 700;
}

.public-hero .btn-primary {
  background: #e4002b;
  border-color: #e4002b;
}

.public-section {
  padding: 64px 0;
}

.public-feature,
.public-info-card,
.product-line,
.branch-public-card {
  height: 100%;
  padding: 26px;
  border: 1px solid #e1e6f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(18, 63, 145, 0.08);
}

.public-feature span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #123f91;
  color: #ffffff;
  font-weight: 800;
}

.public-feature h2,
.public-info-card h2,
.product-line h2,
.branch-public-card h2 {
  margin-bottom: 10px;
  color: #123f91;
  font-size: 21px;
  font-weight: 800;
}

.public-feature p,
.public-info-card p,
.product-line p,
.branch-public-card p {
  margin-bottom: 0;
  color: #5e6878;
}

.public-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-chip-list span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 8px;
  background: #edf3ff;
  color: #123f91;
  font-size: 14px;
  font-weight: 700;
}

.public-page-title {
  padding: 82px 0 44px;
  background: #123f91;
  color: #ffffff;
}

.public-page-title h1 {
  width: min(100%, 820px);
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
}

.product-grid,
.branch-public-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.branch-public-card {
  border-top: 5px solid #e4002b;
}

.branch-public-card strong {
  display: block;
  margin-top: 16px;
  color: #182033;
}

.branch-public-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #edf3ff;
  color: #123f91;
  font-size: 13px;
  font-weight: 700;
}

.public-footer {
  padding: 24px 0;
  background: #0d2e6d;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 991px) {
  .public-brand img {
    width: 170px;
  }

  .public-hero {
    min-height: 560px;
  }

  .public-hero h1 {
    font-size: 42px;
  }

  .product-grid,
  .branch-public-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .public-hero {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(8, 25, 56, 0.92), rgba(8, 25, 56, 0.72)),
      url("../img/public/hardware-hero.png") center / cover no-repeat;
  }

  .public-hero-content {
    padding: 48px 0;
  }

  .public-hero h1,
  .public-page-title h1 {
    font-size: 34px;
  }

  .product-grid,
  .branch-public-grid {
    grid-template-columns: 1fr;
  }
}
