/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* BRTA-aligned palette (logo: Bangladesh green, red disc, black typography) */
:root {
  --surface: #ffffff;
  --surface-muted: #f4faf8;
  --line: #cfe6df;
  --text-main: #0c1f1a;
  --text-muted: #4a6670;
  --brta-green: #008b18;
  --brta-green-mid: #055506;
  --brta-green-dark: #004d18;
  --brta-green-deep: #003d2c;
  --brta-red: #f42a41;
  --brta-red-soft: #fdeef0;
  --primary: var(--brta-green);
  --primary-hover: var(--brta-green-dark);
  --focus-ring: rgba(0, 106, 78, 0.22);
  /* Deep emblem green — glass / frosted accents */
  --glass-green: #055506;
  --glass-green-rgb: 5, 85, 6;
}

html,
body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Body layout */
body {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 106, 78, 0.12) 0%, rgba(0, 106, 78, 0) 40%),
    radial-gradient(circle at 100% 100%, rgba(244, 42, 65, 0.06) 0%, rgba(244, 42, 65, 0) 45%),
    linear-gradient(145deg, #f6fbf9 0%, #ecf5f2 52%, #e4f0eb 100%);
  color: var(--text-main);
}

/* Left image section */
.left-container {
  flex: 1;
  background-color: #eef5f2;
  background-image: var(--left-panel-image);
  background-position: center;
  background-size: min(90%, 660px) auto;
  background-repeat: no-repeat;
  padding: 2rem;
}

/* Right form section */
.right-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 1rem;
  padding: 2.2rem 2rem 1.2rem;
  background:
    radial-gradient(circle at 12% -8%, rgba(var(--glass-green-rgb), 0.22) 0%, rgba(var(--glass-green-rgb), 0) 48%),
    radial-gradient(circle at 92% 100%, rgba(var(--glass-green-rgb), 0.12) 0%, rgba(var(--glass-green-rgb), 0) 52%),
    linear-gradient(170deg, #f7fcfa 0%, #e8f5ee 52%, #dff0e8 100%);
  border-left: 1px solid var(--line);
}

.right-container::before,
.right-container::after {
  content: "";
  position: absolute;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}

.right-container::before {
  width: 380px;
  height: 320px;
  top: -145px;
  right: -165px;
  border-radius: 56px;
  transform: rotate(16deg);
  background: linear-gradient(
    142deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(var(--glass-green-rgb), 0.18) 42%,
    rgba(var(--glass-green-rgb), 0.26) 100%
  );
  border: 1px solid rgba(var(--glass-green-rgb), 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -12px 32px rgba(var(--glass-green-rgb), 0.08);
}

.right-container::after {
  width: 350px;
  height: 350px;
  bottom: -190px;
  left: -140px;
  border-radius: 50px;
  transform: rotate(-20deg);
  background: linear-gradient(
    145deg,
    rgba(var(--glass-green-rgb), 0.1) 0%,
    rgba(var(--glass-green-rgb), 0.2) 55%,
    rgba(var(--glass-green-rgb), 0.14) 100%
  );
  border: 1px solid rgba(var(--glass-green-rgb), 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Form box */
.right-container__box {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-width: 430px;
  width: 100%;
  padding: 2.3rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--glass-green-rgb), 0.28);
  box-shadow:
    0 22px 55px rgba(var(--glass-green-rgb), 0.12),
    0 6px 20px rgba(var(--glass-green-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(var(--glass-green-rgb), 0.06) 45%,
    rgba(var(--glass-green-rgb), 0.1) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  animation: card-entry 0.45s ease-out;
}

.right-container__box::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -65px;
  top: -78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glass-green-rgb), 0.22) 0%, rgba(var(--glass-green-rgb), 0.06) 55%, rgba(var(--glass-green-rgb), 0) 72%);
  pointer-events: none;
}

.right-container__box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(var(--glass-green-rgb), 0.05) 35%,
    rgba(255, 255, 255, 0) 42%
  );
  pointer-events: none;
}

/* Heading and paragraph */
.right-container__h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.right-container__p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

/* Labels and inputs */
.right-container__label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 14px;
  color: #1a3d34;
}

.right-container__input {
  width: 100%;
  padding: 12px 16px;
  margin-top: 6px;
  border: 1px solid #b8d9cf;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-main);
  background-color: #fbfefd;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.right-container__input::placeholder {
  color: #94a3b8;
}

.right-container__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.password-field {
  position: relative;
}

.password-field .right-container__input {
  margin-top: 6px;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-38%);
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-toggle:hover {
  color: #1a3d34;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.password-toggle__icon {
  width: 20px;
  height: 20px;
}

.password-toggle__icon--hide {
  display: none;
}

.password-toggle.is-visible .password-toggle__icon--show {
  display: none;
}

.password-toggle.is-visible .password-toggle__icon--hide {
  display: block;
}

/* Button */
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--brta-green-mid) 0%, var(--brta-green-deep) 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 106, 78, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--brta-green-dark) 0%, var(--brta-green) 100%);
  box-shadow: 0 6px 18px rgba(0, 106, 78, 0.42);
  transform: translateY(-1px);
}

/* Error message */
.error-message {
  color: #9f1239;
  background: var(--brta-red-soft);
  border: 1px solid rgba(244, 42, 65, 0.35);
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 13px;
  text-align: left;
}

.error-message ul {
  list-style-position: inside;
}

.right-container__powered-by {
  position: relative;
  top: -50px;
  z-index: 2;
  align-self: end;
  width: min(430px, 100%);
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  font-size: 15px;
  font-weight: 600;
  color: #2d4a42;
  white-space: nowrap;
  animation: fade-up 0.55s ease-out;
}

.right-container__powered-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.right-container__powered-link:hover {
  transform: translateY(-1px);
}

.right-container__powered-link:focus-visible {
  outline: 2px solid var(--brta-green);
  outline-offset: 2px;
}

.right-container__powered-logo {
  height: 115px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@keyframes card-entry {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .right-container__box,
  .right-container__powered-by {
    animation: none;
  }
}

/* Responsive for mobile */
@media (max-width: 860px) {
  body {
    flex-direction: column;
  }

  .left-container {
    min-height: 220px;
    border-bottom: 1px solid var(--line);
    padding: 1.25rem;
  }

  .right-container {
    flex: 1 0 auto;
    grid-template-rows: auto auto;
    align-content: start;
    padding: 2rem 1rem;
    border-left: none;
  }

  .right-container__box {
    width: 100%;
    padding: 1.5rem;
  }

  .right-container__powered-by {
    top: -9px;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 12px;
    gap: 0.45rem;
  }

  .right-container__powered-link {
    width: auto;
    padding: 0.12rem 0.25rem;
  }

  .right-container__powered-logo {
    height: 54px;
  }
}

@media (min-width: 861px) and (max-width: 1376px) {
  .right-container .right-container__powered-by {
    top: -19px;
  }
}
