:root {
  --primary: #0f8a5f;
  --primary-dark: #0a6a49;
  --secondary: #e8fff6;
  --text-dark: #15332a;
  --text-muted: #5d746c;
  --white: #ffffff;
  --border-soft: rgba(255, 255, 255, 0.25);
  --shadow-main: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 138, 95, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18, 156, 105, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(8, 88, 60, 0.16), transparent 30%),
    linear-gradient(135deg, #f5fbf8 0%, #eef8f3 50%, #f9fffc 100%);
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

.landing-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  position: relative;
  z-index: 2;
}

.hero-card {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-main);
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 138, 95, 0.10);
  color: var(--primary-dark);
  border: 1px solid rgba(15, 138, 95, 0.18);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(90deg, #0f8a5f 0%, #20b277 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 700px;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 138, 95, 0.10);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--text-dark);
}

.feature-item i {
  font-size: 1.1rem;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f8a5f 0%, #0b6b49 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 16px 26px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 138, 95, 0.30);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  animation: loginButtonFloat 2.8s ease-in-out infinite;
}

.btn-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .28) 48%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}

.btn-main i {
  transition: transform .25s ease;
}

.btn-main-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loginButtonSpin .7s linear infinite;
}

.btn-main:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 138, 95, 0.35);
  animation: none;
}

.btn-main:hover::before {
  transform: translateX(130%);
}

.btn-main:hover i {
  transform: translateX(3px);
}

.btn-main:active {
  transform: translateY(0) scale(.98);
}

.btn-main.is-loading,
.btn-main.is-loading:hover {
  pointer-events: none;
  cursor: wait;
  background: #0f754e;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(22, 135, 91, .28);
  animation: loginButtonConfirm .42s ease both;
}

.btn-main.is-loading .btn-main-icon {
  transform: translateX(2px);
}

.btn-main.is-loading .btn-main-spinner {
  display: inline-block;
}

.quick-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-right {
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.logo-circle {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(230,247,239,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(15, 138, 95, 0.10);
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.panel-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  border: 1px solid rgba(15, 138, 95, 0.10);
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: rgba(15, 138, 95, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-card h6 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.system-status {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f4fff9;
  border: 1px solid rgba(15, 138, 95, 0.15);
  font-weight: 700;
  color: var(--primary-dark);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #16c172;
  box-shadow: 0 0 0 6px rgba(22, 193, 114, 0.16);
  animation: pulseStatus 1.8s infinite;
}

.footer-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 24px;
}

.developer-credit {
  margin-top: 6px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15, 95, 66, .78);
}

.developer-credit strong {
  color: var(--portal-green-dark, #0f5f42);
  font-weight: 800;
}

/* ===== Executive Polish Layer ===== */
.hero-card {
  max-width: 1120px;
}

.hero-left {
  min-height: 520px;
}

.hero-right {
  min-height: 520px;
}

.hero-title {
  max-width: 680px;
  font-weight: 850;
}

.hero-subtitle {
  max-width: 650px;
}

.feature-item {
  box-shadow: none;
}

.feature-item:hover,
.info-card:hover {
  border-color: rgba(22, 135, 91, .20);
  background: rgba(255, 255, 255, .88);
}

.btn-main {
  letter-spacing: .01em;
}

.footer-note {
  padding-top: 18px;
  border-top: 1px solid rgba(16, 37, 31, .08);
}

/* ===== Desktop No-Scroll Landing Fit ===== */
@media (min-width: 992px) and (min-height: 700px) {
  body {
    overflow: hidden;
  }

  .landing-wrapper {
    min-height: 100vh;
    height: 100vh;
    padding: 14px 18px;
  }

  .hero-card {
    max-width: 1450px;
    height: min(870px, calc(100vh - 28px));
    align-items: stretch;
  }

  .hero-left,
  .hero-right {
    min-height: 0;
    height: 100%;
  }

  .hero-left {
    padding: clamp(28px, 4.1vh, 44px) clamp(36px, 4vw, 70px);
  }

  .hero-right {
    padding: clamp(24px, 3.4vh, 34px) 36px clamp(22px, 3vh, 30px);
  }

  .top-badge {
    margin-bottom: clamp(16px, 2.5vh, 24px);
  }

  .hero-title {
    font-size: clamp(2.85rem, 4.45vw, 4.75rem);
    margin-bottom: clamp(14px, 2vh, 20px);
  }

  .hero-subtitle {
    margin-bottom: clamp(18px, 2.6vh, 26px);
    line-height: 1.58;
  }

  .feature-list {
    gap: 12px;
    margin-bottom: clamp(20px, 3vh, 32px);
  }

  .feature-item {
    min-height: 56px;
    padding: 13px 16px;
  }

  .hero-actions {
    gap: 12px;
  }

  .logo-wrap {
    margin-bottom: clamp(18px, 2.8vh, 24px);
  }

  .logo-circle {
    width: clamp(104px, 13vh, 128px);
    height: clamp(104px, 13vh, 128px);
    margin-bottom: 14px;
  }

  .logo-img {
    width: clamp(68px, 8.2vh, 80px);
    height: clamp(68px, 8.2vh, 80px);
  }

  .info-card {
    padding: clamp(14px, 2vh, 18px);
    margin-bottom: clamp(12px, 2vh, 16px);
  }

  .info-card p {
    line-height: 1.48;
  }

  .system-status {
    margin-top: clamp(6px, 1vh, 10px);
    padding: clamp(13px, 2vh, 16px) 18px;
  }

  .footer-note {
    margin-top: clamp(14px, 2.3vh, 22px);
    padding-top: clamp(12px, 2vh, 18px);
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .hero-card {
    height: calc(100vh - 20px);
  }

  .landing-wrapper {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 4vw, 4.1rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .feature-item {
    min-height: 52px;
  }

  .btn-main {
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ===== Elegant Landing Composition Refinement ===== */
@media (min-width: 992px) {
  body {
    background:
      radial-gradient(900px 520px at 4% 8%, rgba(22, 135, 91, .12), transparent 58%),
      radial-gradient(820px 480px at 96% 5%, rgba(40, 120, 215, .11), transparent 60%),
      linear-gradient(90deg, rgba(17, 94, 68, .045) 0 1px, transparent 1px),
      linear-gradient(0deg, rgba(40, 120, 215, .035) 0 1px, transparent 1px),
      linear-gradient(135deg, #f5faf7 0%, #fbfefd 52%, #f0f7ff 100%);
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
  }

  .hero-card {
    max-width: 1380px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .68fr);
    gap: 16px;
  }

  .glass-panel {
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.86));
    border-color: rgba(255,255,255,.88);
    box-shadow: 0 22px 58px rgba(18,39,33,.10);
  }

  .glass-panel::before {
    height: 2px;
    opacity: .82;
  }

  .hero-left {
    padding-left: clamp(44px, 4.5vw, 70px);
    padding-right: clamp(44px, 4.5vw, 70px);
  }

  .top-badge {
    padding: 8px 14px;
    background: rgba(22,135,91,.085);
    font-size: .84rem;
  }

  .hero-title {
    max-width: 660px;
    font-size: clamp(3rem, 3.95vw, 4.25rem);
    line-height: 1.01;
    letter-spacing: 0;
  }

  .hero-subtitle {
    max-width: 650px;
    color: #60766e;
    font-size: 1rem;
  }

  .feature-list {
    max-width: 660px;
  }

  .feature-item {
    min-height: 54px;
    border-radius: 11px;
    background: rgba(255,255,255,.78);
    box-shadow: none;
    font-size: .92rem;
  }

  .feature-item i {
    font-size: 1rem;
  }

  .btn-main {
    min-width: 210px;
    justify-content: center;
    border-radius: 12px;
    font-size: .94rem;
  }

  .quick-note {
    font-size: .86rem;
  }

  .hero-right {
    padding-left: 30px;
    padding-right: 30px;
  }

  .logo-circle {
    width: 108px;
    height: 108px;
    background: rgba(245, 253, 249, .85);
  }

  .logo-img {
    width: 70px;
    height: 70px;
  }

  .panel-title {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  .panel-subtitle {
    font-size: .9rem;
  }

  .info-card {
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 28px rgba(18,39,33,.055);
  }

  .info-card h6 {
    font-size: .95rem;
  }

  .info-card p {
    font-size: .88rem;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .system-status {
    border-radius: 11px;
    font-size: .9rem;
  }

  .footer-note {
    color: rgba(83, 105, 96, .78);
    font-size: .82rem;
  }

  .developer-credit {
    margin-top: 5px;
    color: rgba(83, 105, 96, .48);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: lowercase;
  }

  .developer-credit span {
    color: rgba(15, 95, 66, .62);
    font-weight: 700;
  }
}

@media (min-width: 1400px) {
  .hero-card {
    max-width: 1360px;
  }
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.b1 {
  width: 280px;
  height: 280px;
  background: rgba(32, 178, 119, 0.30);
  top: 8%;
  left: 5%;
}

.b2 {
  width: 320px;
  height: 320px;
  background: rgba(12, 106, 73, 0.22);
  bottom: 8%;
  right: 7%;
}

.b3 {
  width: 220px;
  height: 220px;
  background: rgba(53, 201, 143, 0.22);
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
}

@keyframes pulseStatus {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.18);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-left,
  .hero-right {
    padding: 32px 24px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .landing-wrapper {
    padding: 18px 12px;
  }

  .hero-left,
  .hero-right {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .btn-main {
    width: 100%;
    justify-content: center;
  }

  .logo-circle {
    width: 108px;
    height: 108px;
  }

  .logo-img {
    width: 68px;
    height: 68px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }
}

@keyframes loginButtonFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 16px 30px rgba(22, 135, 91, .24);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(22, 135, 91, .30);
  }
}

@keyframes loginButtonSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loginButtonConfirm {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    transform: translateY(-1px) scale(1);
  }
}

/* ===== Polished Portal Landing Override ===== */
:root {
  --portal-green: #16875b;
  --portal-green-dark: #0f5f42;
  --portal-blue: #2878d7;
  --portal-ink: #10251f;
  --portal-text: #233f37;
  --portal-muted: #61766f;
  --portal-line: rgba(16, 37, 31, .10);
  --portal-surface: rgba(255, 255, 255, .82);
  --portal-shadow: 0 28px 70px rgba(18, 39, 33, .12);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(19, 135, 91, .09) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 120, 215, .06) 0 1px, transparent 1px),
    radial-gradient(760px 460px at 8% 12%, rgba(22, 135, 91, .18), transparent 62%),
    radial-gradient(780px 440px at 92% 9%, rgba(40, 120, 215, .14), transparent 62%),
    linear-gradient(135deg, #f3faf6 0%, #fbfefd 48%, #eef6ff 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.landing-wrapper {
  padding: clamp(18px, 4vh, 36px) 18px;
}

.hero-card {
  max-width: 1160px;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .72fr);
  gap: 18px;
}

.glass-panel {
  background: var(--portal-surface);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 20px;
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--portal-green), var(--portal-blue));
  opacity: .9;
}

.hero-left {
  min-height: 560px;
  padding: clamp(32px, 5vw, 56px);
}

.hero-right {
  min-height: 560px;
  padding: 34px 28px 28px;
}

.top-badge {
  margin-bottom: 26px;
  padding: 9px 14px;
  background: rgba(22, 135, 91, .10);
  border: 1px solid rgba(22, 135, 91, .18);
  color: var(--portal-green-dark);
  font-size: .88rem;
  font-weight: 700;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(2.75rem, 4.45vw, 4.35rem);
  line-height: .98;
  margin-bottom: 22px;
  color: var(--portal-ink);
  letter-spacing: 0;
}

.hero-title span {
  background: linear-gradient(90deg, #149364 0%, #22aa74 72%, #2878d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--portal-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-list {
  max-width: 720px;
  gap: 12px;
  margin-bottom: 34px;
}

.feature-item,
.info-card {
  border-radius: 12px;
  border: 1px solid var(--portal-line);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 32px rgba(18, 39, 33, .07);
}

.feature-item {
  min-height: 58px;
  padding: 14px 16px;
  color: var(--portal-text);
  font-size: .96rem;
}

.feature-item i,
.info-icon {
  color: var(--portal-green);
}

.btn-main {
  min-height: 52px;
  border-radius: 14px;
  padding: 14px 24px;
  background: #16875b;
  box-shadow: 0 16px 30px rgba(22, 135, 91, .24);
}

.btn-main:hover {
  background: #0f754e;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(22, 135, 91, .28);
}

.quick-note {
  font-size: .92rem;
}

.logo-circle {
  width: 116px;
  height: 116px;
  box-shadow: 0 16px 36px rgba(18, 39, 33, .09);
}

.logo-img {
  width: 76px;
  height: 76px;
}

.panel-title {
  color: var(--portal-ink);
  font-size: 1.38rem;
}

.panel-subtitle,
.info-card p,
.footer-note {
  color: var(--portal-muted);
}

.info-card {
  padding: 17px;
}

.info-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(22, 135, 91, .11);
}

.system-status {
  border-radius: 12px;
  background: rgba(238, 250, 244, .86);
  border: 1px solid rgba(22, 135, 91, .16);
}

.blob {
  display: none;
}

@media (max-width: 991.98px) {
  .hero-card {
    max-width: 760px;
    grid-template-columns: 1fr;
  }

  .hero-left,
  .hero-right {
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3.1rem);
  }
}

@media (max-width: 575.98px) {
  .landing-wrapper {
    align-items: flex-start;
    padding: 14px 10px;
  }

  .glass-panel {
    border-radius: 16px;
  }

  .hero-left,
  .hero-right {
    padding: 24px 18px;
  }

  .top-badge {
    font-size: .82rem;
  }

  .hero-subtitle {
    line-height: 1.58;
  }
}
