*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6fb;
}

/* ─── LEFT PANEL ─────────────────────────────────── */
.left-panel {
  width: 45%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 0 24px 24px 0;
}

/* Full-bleed background slides */
.bg-slides {
  position: absolute;
  inset: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.bg-slide.active {
  opacity: 1;
}

.bg-slide--1 { background-image: url('./assets/slideone.svg'); }
.bg-slide--2 { background-image: url('./assets/slidetwo.svg'); }
.bg-slide--3 { background-image: url('./assets/slidethree.svg'); }

.left-panel .overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100vh;
  padding: 40px 36px 32px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* Carousel: center row with arrows flanking the logo/text */
.carousel-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

.arrow-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Center content: logo + tagline */
.left-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}

.brand-logo {
  width: 90px;
  height: auto;
  margin-bottom: 16px;
}

/* Placeholder for GlobalNet pixel logo */
.logo-placeholder {
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
  /* Replace with <img src="globalnet-logo.png" alt="GlobalNet"> */
  background: linear-gradient(135deg, #c0392b 50%, #2c5fcc 50%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.brand-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.brand-name span.red {
  color: #e02b20;
}
.brand-name span.blue {
  color: #3b82f6;
}

.left-tagline {
  color: #e0e8ff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 320px;
}

/* Partner logos strip */
.partners {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 8px;
}

.partner-logo {
  /* background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14); */
  border-radius: 6px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 4px 6px;
  overflow: hidden;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

/* ─── RIGHT PANEL ────────────────────────────────── */
.right-panel {
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 60px 40px;
}

.form-container {
  width: 100%;
  max-width: 480px;
}

.form-title {
  font-size: 30px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.25;
}

.form-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.login-error--hidden {
  display: none;
}

.login-error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.btn-login:disabled {
  background: #93a8e0;
  cursor: not-allowed;
  transform: none;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  color: #374151;
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus {
  border-color: #3b5fc0;
  box-shadow: 0 0 0 3px rgba(59, 95, 192, 0.12);
}

/* Remember me + Forgot password row */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked {
  background: #3b5fc0;
  border-color: #3b5fc0;
}

.remember-me input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.remember-me span {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.forgot-link {
  font-size: 14px;
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-weight: 500;
  background: none;
  border: none;
}

.forgot-link:hover {
  color: #3b5fc0;
}

/* Login button */
.btn-login {
  width: 100%;
  padding: 16px;
  background: #3b5fc0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.btn-login:hover {
  background: #2f4fa8;
}
.btn-login:active {
  transform: scale(0.99);
}

/* Sign up link */
.signup-row {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.signup-row a {
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.signup-row a:hover {
  color: #3b5fc0;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 860px) {
  body {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    min-height: 360px;
    border-radius: 0 0 24px 24px;
  }

  .right-panel {
    width: 100%;
    padding: 40px 24px;
  }

  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .form-title {
    font-size: 24px;
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
