* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

:root {
  /* Primary Greens */
  --p-50: #e8f5e9;
  --p-100: #c8e6c9;
  --p-400: #66bb6a;
  --p-500: #2e7d32; /* Main Brand Color */
  --p-700: #256528;

  /* Neutrals */
  --n-50: #fafafa;
  --n-100: #f5f5f5;
  --n-300: #e0e0e0;
  --n-400: #bdbdbd;
  --n-500: #7b7b7b;
  --n-600: #757575;
  --n-700: #616161;
  --n-800: #424242;
  --n-900: #212121;

  /* Layout Constants */
  --bg-color: #ffffff;
  --container-max: 1200px;
  --transition: all 0.3s ease;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef6ff;
  background-image:
    url(/assets/images/Create\ account.png),
    radial-gradient(
      circle at 20% 20%,
      rgba(47, 158, 68, 0.14),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 129, 255, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 30% 80%, rgba(47, 158, 68, 0.1), transparent 50%);

  padding: 2rem 1rem;
}

.auth-wrap {
  width: 100%;
  max-width: 980px;
}

.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  padding: 2.2rem 2rem;
  border: 1px solid #eef2f7;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.auth-logo {
  font-weight: 800;
  color: #2f9e44;
  font-size: 1.1rem;
}

.auth-title {
  text-align: center;
  font-size: 2.48813rem;
  font-style: normal;
  font-weight: 600;
  margin-top: 0.25rem;
}

.auth-subtitle {
  text-align: center;
  color: #6b7280;
  margin: 0.5rem 0 1.6rem;
}

.auth-form .field {
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hint {
  display: block;
  margin-top: 0.4rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.auth-submit {
  width: 18.8125rem;
  margin-top: 1.3rem;
  border: none;
  cursor: pointer;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  /* box-shadow: 0 12px 22px rgba(47, 158, 68, 0.25); */

  background: var(--p-500, #2e7d32);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.auth-divider {
  display: grid;
  place-items: center;
  margin: 1.1rem 0;
  color: #6b7280;
  position: relative;
}

.auth-divider span {
  background: #fff;
  padding: 0 0.75rem;
  z-index: 1;
}

.auth-divider::before {
  content: "";
  height: 1px;
  width: 100%;
  background: #e5e7eb;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.oauth-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.oauth-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #f3f4f6;
  color: #111827;
}

.auth-bottom {
  text-align: center;
  margin-top: 1.2rem;
  color: #6b7280;
}

.auth-bottom a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.form-success {
  text-align: center;
  margin-top: 0.9rem;
  color: #166534;
  font-weight: 700;
  min-height: 1.2em;
}

span {
  color: var(#0f1c2f);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Mobile / Tablet */
@media (max-width: 768px) {
  .auth-card {
    padding: 1.6rem 1.2rem;
  }

  .auth-title {
    font-size: 1.8rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .oauth-buttons {
    grid-template-columns: 1fr;
  }
}

/* Login form begins here */

.login-body {
  background-image:
    url(/assets/images/login.png),
    radial-gradient(
      circle at 20% 20%,
      rgba(47, 158, 68, 0.14),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 129, 255, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 30% 80%, rgba(47, 158, 68, 0.1), transparent 50%);
}

.auth-card-wide {
  max-width: 980px;
}

/* login extras */
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;

  margin-bottom: 2rem;
}

.checkbox.inline {
  margin-top: 0;
}

.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 3.2rem;
}

.eye-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 768px) {
  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reset password starts here */

/* Reset Password screen look (cleaner background) */
.auth-body-plain {
  background: #ffffff;
  background-image: none;
}

/* Top-left circular back */
.corner-back {
  position: fixed;
  top: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.corner-back:hover {
  transform: translateY(-1px);
}

.password-body {
  max-width: 636px;
  margin: auto;
}

/* smaller card for reset flow */
.auth-card-small {
  max-width: 720px;
}

/* back link line */
.auth-backline {
  margin-top: 1rem;
  text-align: left;
}

@media (max-width: 768px) {
  .corner-back {
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
  }

  .auth-backline {
    text-align: center;
  }
}

/* OTP starts here */

/* OTP */
.otp-label {
  text-align: center;
  margin-top: 0.75rem;
  color: #111827;
  font-weight: 600;
}

.otp-boxes {
  margin: 1.2rem auto 1rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
}

.otp-input {
  width: 68px;
  height: 78px;
  text-align: center;
  font-size: 1.6rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
}

.otp-input:focus {
  border-color: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.15);
}

.otp-help,
.otp-resend {
  text-align: center;
  margin-top: 0.5rem;
}

.otp-resend {
  color: #1f2937;
}

.otp-timer {
  color: #dc2626;
  font-weight: 800;
}

#otpError {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* Responsive OTP */
@media (max-width: 480px) {
  .otp-boxes {
    gap: 0.75rem;
  }

  .otp-input {
    width: 56px;
    height: 68px;
    font-size: 1.4rem;
  }
}

.resend-link {
  font-weight: 800;
}

/* Success styling starts here */

/* Success screen */
.auth-card-success {
  max-width: 980px;
  padding: 3.2rem 2rem;
  text-align: center;
}

.success-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #0b6b1a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
}

.success-title {
  font-size: 2.3rem;
  margin-bottom: 0.25rem;
  color: #111827;
}

.success-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 1.6rem;
}

.success-btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(47, 158, 68, 0.25);
  text-decoration: none;
}

@media (max-width: 768px) {
  .auth-card-success {
    padding: 2.2rem 1.2rem;
  }

  .success-title {
    font-size: 1.9rem;
  }

  .success-subtitle {
    font-size: 1.1rem;
  }

  .success-icon {
    width: 84px;
    height: 84px;
    font-size: 2rem;
  }
}

/* Verify email starts here */

.verify-note {
  text-align: center;
  color: #64748b;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.6;
}

.verify-resend {
  text-align: center;
  color: #1f2937;
  margin-top: 0.7rem;
  line-height: 1.7;
}

.resend-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.resend-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.switch-email {
  margin-top: 1.4rem;
  text-align: center;
}

.switch-email a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

#verifyError {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* onboarding starts here */

/* Onboarding */
.onboard-body {
  min-height: 100vh;
  background: #ffffff;
  padding: 1.25rem 1.25rem 2rem;
}

.onboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.onboard-logo {
  font-weight: 900;
  color: #2f9e44;
  font-size: 1.3rem;
}

.onboard-skip {
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.onboard-main {
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 1.2rem;
}

.onboard-content {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 1rem;
}

.onboard-image {
  width: min(920px, 95%);
  max-height: 460px;
  object-fit: contain;
  margin: 1.2rem 0 1.2rem;
}

.onboard-title {
  color: #2f9e44;
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  margin: 0.25rem 0 0.6rem;
}

.onboard-text {
  max-width: 820px;
  color: #475569;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}

.onboard-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
}

.onboard-continue {
  width: 340px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(47, 158, 68, 0.25);
}

.dots {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #cfe8d5;
  display: inline-block;
}

.dot.active {
  background: #2f9e44;
}

/* Tablet */
@media (max-width: 1024px) {
  .onboard-continue {
    width: 280px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .onboard-body {
    padding: 1rem 1rem 1.5rem;
  }

  .onboard-text {
    font-size: 1rem;
  }

  .onboard-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .onboard-continue {
    width: 100%;
  }

  .dots {
    justify-content: center;
  }
}

/* role select starts here */

/* Role selection */
.role-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.role-card {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 2.1rem 1.4rem 1.7rem;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.role-card:hover {
  transform: translateY(-1px);
}

.role-radio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  display: grid;
  place-items: center;
  background: #fff;
}

.role-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

.role-card.selected {
  border-color: #2f9e44;
  box-shadow: 0 18px 45px rgba(47, 158, 68, 0.16);
}

.role-card.selected .role-radio {
  border-color: #2f9e44;
}

.role-card.selected .role-dot {
  background: #2f9e44;
}

.role-icon {
  color: #111827;
  margin: 0 auto 1rem;
}

.role-title {
  font-size: 1.35rem;
  margin: 0.25rem 0 0.65rem;
  color: #111827;
  font-weight: 900;
}

.role-text {
  color: #475569;
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
}

.role-cta {
  margin-top: 1.8rem;
}

.role-container {
  margin: auto;
  max-width: 720px;
}

/* Responsive */
@media (max-width: 900px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-body {
    display: flex;
    flex-direction: column;
  }
}

/* Profile creation starts here */

/* Profile split layout */
.profile-body {
  min-height: 100vh;
  background: #ffffff;
}

.profile-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 740px) 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.2rem;
}

.profile-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  padding: 2.2rem 2.1rem;
}

.profile-title {
  font-size: clamp(2rem, 2.8vw, 3.1rem);
  color: #2f9e44;
  margin: 0 0 0.4rem;
  font-weight: 900;
}

.profile-subtitle {
  margin: 0 0 1.8rem;
  color: #475569;
  line-height: 1.6;
}

.profile-section {
  margin: 1.2rem 0 0.7rem;
  font-size: 1.3rem;
  color: #111827;
  font-weight: 900;
}

.profile-form .field {
  margin-bottom: 1.1rem;
}

.profile-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  outline: none;
}

.profile-form input:focus {
  border-color: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.14);
}

.profile-submit {
  width: 100%;
  margin-top: 1.2rem;
  padding: 1.05rem 1.2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(47, 158, 68, 0.25);
}

.profile-illustration {
  display: grid;
  place-items: center;
  padding-right: 2rem;
}

.profile-illustration img {
  width: min(680px, 95%);
  height: auto;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
  .profile-wrap {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.2rem;
  }

  .profile-illustration {
    padding-right: 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .profile-card {
    padding: 1.6rem 1.2rem;
  }

  .profile-illustration {
    display: none;
  }
}
