:root {
  --teal: #1DC89A;
  --teal-dark: #17a882;
  --navy: #0d1b2a;
}

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

/* Global UI scale — roughly 125% larger, eased on smaller screens */
html { font-size: 125%; }
@media (max-width: 991.98px) { html { font-size: 118.75%; } }
@media (max-width: 575.98px) { html { font-size: 112.5%; } }

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
}

/* LEFT PANEL */
.left-panel {
  width: 50%;
  background: linear-gradient(160deg, #0d1b2a 0%, #1a2e44 60%, #0f2233 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 200, 154, 0.07) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 3rem;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 1rem;
}

.panel-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 320px;
}

/* RIGHT PANEL */
.right-panel {
  width: 50%;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
}

.form-box {
  width: 100%;
  max-width: 360px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--teal);
}

.form-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}

.form-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 1.8rem;
}

.form-subtitle a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  background: #fff;
  color: #1a1a2e;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 200, 154, 0.1);
}

.form-control.is-invalid {
  border-color: #ef4444;
}

.invalid-feedback {
  font-size: 0.75rem;
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 2.5rem;
}

.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.toggle-pw:hover {
  color: var(--teal);
}

.btn-submit {
  width: 100%;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1.4rem;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--teal-dark);
}

.form-footer {
  text-align: center;
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.form-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .left-panel {
    padding: 2rem;
    min-height: auto;
  }

  .panel-title {
    font-size: 1.4rem;
  }
}