@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&family=Varela+Round&display=swap');

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: #FFFBFA;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

.forgot-page {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(360px, 540px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(16px, 3vw, 42px);
  overflow: hidden;
}

.forgot-left {
  width: 100%;
  max-width: 460px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(11px, 1.5vh, 13px);
  color: #64748B;
  text-decoration: none;
  margin-bottom: clamp(14px, 2.5vh, 24px);
}

.forgot-title {
  font-family: 'Varela Round', sans-serif;
  font-size: clamp(25px, 4.6vh, 38px);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.6vh, 14px);
  color: #0F172A;
  line-height: 1.15;
}

.forgot-sub {
  font-size: clamp(12px, 1.8vh, 15px);
  line-height: 1.6;
  color: #64748B;
  margin-bottom: clamp(18px, 3vh, 30px);
  max-width: 430px;
}

.message {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.message.success {
  background: #F0FDF4;
  color: #065F46;
}

.message.error {
  background: #FEE2E2;
  color: #991B1B;
}

.form-group {
  position: relative;
  margin-bottom: clamp(14px, 2.5vh, 22px);
}

.form-group input {
  width: 100%;
  height: clamp(42px, 6vh, 54px);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: clamp(12px, 1.7vh, 15px);
  color: #0F172A;
  background: #fff;
  outline: none;
}

.form-group input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

.form-group label {
  position: absolute;
  top: -10px;
  left: 12px;
  background: #fff;
  padding: 0 5px;
  font-size: clamp(11px, 1.5vh, 13px);
  color: #475569;
}

.submit-btn {
  width: 100%;
  height: clamp(40px, 5.8vh, 50px);
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: clamp(12px, 1.7vh, 14px);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: clamp(16px, 3vh, 26px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #94A3B8;
  font-size: clamp(11px, 1.5vh, 13px);
  margin-bottom: clamp(14px, 2.5vh, 24px);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.google-btn {
  width: 100%;
  height: clamp(40px, 5.8vh, 48px);
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
}

.forgot-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-card {
  width: min(100%, 500px);
  height: min(78dvh, 620px);
  border-radius: 24px;
  overflow: hidden;
  background: #F1F5F9;
  box-shadow: 0 24px 64px rgba(15,23,42,0.08);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-height: 720px) {
  .forgot-page {
    padding: 18px 32px;
    gap: 36px;
  }

  .forgot-title {
    font-size: 30px;
  }

  .forgot-sub {
    margin-bottom: 18px;
  }

  .image-card {
    height: 560px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .forgot-page {
    min-height: 100dvh;
    height: auto;
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .forgot-left {
    max-width: 480px;
    margin: 0 auto;
  }

  .forgot-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .forgot-page {
    padding: 22px 16px;
  }

  .forgot-title {
    font-size: 26px;
  }

  .forgot-sub {
    font-size: 13px;
  }
}
