*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  color: #0f172a;
  background: #eef3f0;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.eye-closed.hidden,
.eye-open.hidden {
  display: none;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #0a3d2e url("./assets/media/login/login-night.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.92) 0%, rgba(8, 47, 35, 0.88) 55%, rgba(3, 25, 18, 0.94) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 56px 48px;
  color: #ecfdf5;
}

.hero-brand {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.hero-desc {
  margin: 0 0 22px;
  color: rgba(236, 253, 245, 0.86);
  line-height: 1.6;
}

.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(236, 253, 245, 0.92);
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18);
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(20px, 5vw, 72px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.panel-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
}

.panel-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #064e3b;
}

.lang-btn {
  border: 1px solid #d1e7dd;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.login-form {
  background: #fff;
  border: 1px solid #e2ece6;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.field {
  position: relative;
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.field input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 0 44px 0 14px;
  font: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder {
  color: #94a3b8;
}

.field input:focus {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.field-icon {
  position: absolute;
  right: 10px;
  bottom: 11px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}

.field-captcha input {
  padding-right: 138px;
}

.captcha-box {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2px 4px;
}

#captchaCanvas {
  display: block;
  border-radius: 8px;
}

.captcha-refresh {
  border: 0;
  background: #ecfdf5;
  color: #047857;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.form-row {
  display: flex;
  justify-content: flex-end;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #047857;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.submit-btn {
  height: 50px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #047857 55%, #065f46 100%);
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.28);
}

.submit-btn:hover {
  filter: brightness(1.03);
}

.demo-banner {
  margin: 14px 4px 0;
  font-size: 0.78rem;
  color: #64748b;
}

.quick-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.quick-link {
  color: #047857;
  text-decoration: none;
  font-weight: 600;
}

.dot {
  color: #cbd5e1;
}

.bottom-nav {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}

.bottom-nav a {
  color: #64748b;
  text-decoration: none;
}

.bottom-nav a:hover {
  color: #047857;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  z-index: 120;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(100%, 440px);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #047857;
}

.modal-text {
  margin: 0 0 16px;
  line-height: 1.55;
  color: #475569;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-field {
  display: grid;
  gap: 6px;
}

.modal-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.modal-field input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  font: inherit;
}

.modal-error {
  margin: 0;
  color: #dc2626;
  font-size: 0.84rem;
}

.modal-submit {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #047857;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.maintenance-card {
  text-align: center;
}

.maintenance-countdown {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: #ecfdf5;
  display: grid;
  gap: 4px;
}

.maintenance-countdown-label {
  font-size: 0.8rem;
  color: #64748b;
}

#maintenanceCountdown {
  font-size: 1.6rem;
  color: #047857;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 220px;
  }

  .hero-inner {
    padding: 32px 24px;
  }

  .hero-list {
    display: none;
  }

  .panel {
    padding-top: 8px;
  }
}
