/* ============================================================
   ESTATE DEAL — Shared Stylesheet
   Covers: Login Page  &  Create Account (Signup) Page
   Font: Poppins (400, 500, 600, 700) via Google Fonts
   ============================================================ */

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

/* ══════════════════════════════════════════════
   SHARED BASE
══════════════════════════════════════════════ */

/* --- Logo --- */
.logo {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px 20px;
  text-align: center;
}
.logo-main {
  font-size: 19px;
  font-weight: 700;
  color: #f5c518;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-main .white,
.logo-main .wh { color: #fff; }
.logo-sub {
  font-size: 8.5px;
  color: #f5c518;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- Illustration --- */
.illustration {
  width: min(230px, 90%);
}

/* --- Field Label --- */
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #5b2d8e;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Required asterisk */
.req { color: #e53935; font-size: 14px; }

/* Green match dot */
.dot-green {
  width: 9px;
  height: 9px;
  background: #43a047;
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
}

/* --- Input Wrapper --- */
.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 0 16px;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input-wrap:focus-within {
  border-color: #5b2d8e;
  box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.09);
}

/* Login page uses slightly tighter radius */
.login-page .input-wrap {
  border-radius: 9px;
  padding: 0 13px;
  margin-bottom: 18px;
}

.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #333;
  padding: 13px 0;
  background: transparent;
  min-width: 0;
}
.login-page .input-wrap input {
  font-size: 13px;
  padding: 12px 0;
}
.input-wrap input::placeholder { color: #c5c5c5; }

/* --- Input Icon (login only) --- */
.input-icon {
  color: #bbb;
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}

/* --- Eye / Icon Buttons --- */
.icon-btn,
.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 6px;
  transition: color 0.2s;
}
.icon-btn:hover,
.eye-btn:hover { color: #5b2d8e; }

/* --- Footer / Terms links --- */
.footer-links,
.terms-line {
  text-align: center;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}
.footer-links a,
.terms-line a {
  color: #f5c518;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover,
.terms-line a:hover { text-decoration: underline; }
.footer-links .sep { color: #ccc; margin: 0 8px; }


/* ══════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════ */

.login-page {
  font-family: 'Poppins', sans-serif;
  background: #efefef;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Card */
.login-page .card {
  display: flex;
  width: 100%;
  max-width: 860px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

/* Left panel */
.login-page .left {
  flex: 1;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 28px;
  border-right: 1px solid #ececec;
}

/* Right panel */
.login-page .right {
  flex: 1;
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-page .right h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 6px;
}

/* Signup redirect line */
.signup-line {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 28px;
}
.signup-line a {
  color: #5b2d8e;
  font-weight: 600;
  text-decoration: none;
}
.signup-line a:hover { text-decoration: underline; }

/* Password / OTP toggle row */
.toggle-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 22px;
}
.toggle-btn {
  padding: 9px 24px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.toggle-btn.active   { background: #f5c518; color: #1a1a1a; }
.toggle-btn.inactive { background: #f0f0f0; color: #666; }
.toggle-btn.inactive:hover { background: #e2e2e2; }

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 13px;
  background: #5b2d8e;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.12s;
  margin-bottom: 14px;
}
.submit-btn:hover  { background: #4a2275; }
.submit-btn:active { transform: scale(0.98); }

/* Forgot password */
.forgot {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.forgot:hover { color: #5b2d8e; }


/* ══════════════════════════════════════════════
   SIGNUP / CREATE ACCOUNT PAGE
══════════════════════════════════════════════ */

.signup-page {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* --- Signup Left Panel --- */
.signup-page .left {
  width: 42%;
  flex-shrink: 0;
  background: #cfd8dc;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow: hidden;
  min-height: 100vh;
}

/* Dashed decorative circles */
.signup-page .left::before,
.signup-page .left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
}
.signup-page .left::before { width: 260px; height: 260px; top: 100px; left: 60px; }
.signup-page .left::after  { width: 160px; height: 160px; top: 160px; right: 40px; }

/* Scattered decorative dots */
.dot {
  position: absolute;
  border-radius: 50%;
}

/* Logo positioned top-left */
.signup-page .logo {
  position: absolute;
  top: 36px;
  left: 36px;
  z-index: 2;
}

/* Illustration push-down for logo space */
.signup-page .illustration {
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

/* --- Signup Right Panel --- */
.signup-page .right {
  flex: 1;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 6% 60px 7%;
  overflow: hidden;
}

/* Scattered colorful dots on right */
.rdot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Form container */
.form-box {
  width: 100%;
  max-width: 480px;
}

.form-box h1 {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

/* Login redirect line */
.login-line {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 32px;
}
.login-line a {
  color: #c9920a;
  font-weight: 600;
  text-decoration: none;
}
.login-line a:hover { text-decoration: underline; }

/* Field wrapper */
.field { margin-bottom: 20px; }

/* OTP row (input + send button side by side) */
.otp-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.otp-row .input-wrap { flex: 1; }

/* Send OTP button */
.send-otp-btn {
  padding: 0 22px;
  background: #e0a800;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.12s;
  height: 50px;
  flex-shrink: 0;
}
.send-otp-btn:hover  { background: #c9920a; }
.send-otp-btn:active { transform: scale(0.97); }

/* Create Account button */
.create-btn {
  padding: 14px 34px;
  background: #e0a800;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.12s;
  display: inline-block;
}
.create-btn:hover  { background: #c9920a; }
.create-btn:active { transform: scale(0.98); }


/* ══════════════════════════════════════════════
   RESPONSIVE — LOGIN PAGE
══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 700px) {
  .login-page { padding: 16px; background: #fff; }

  .login-page .card {
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .login-page .left {
    border-right: none;
    border-bottom: 1px solid #ececec;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 28px 24px;
    gap: 20px;
    justify-content: center;
  }

  .login-page .illustration { width: min(150px, 45%); }
  .login-page .right { padding: 32px 28px 40px; }
  .login-page .right h1 { font-size: 22px; }
}

/* Mobile */
@media (max-width: 430px) {
  .login-page { padding: 0; }

  .login-page .card {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .login-page .left {
    flex-direction: column;
    padding: 28px 20px 22px;
    gap: 16px;
  }

  .login-page .illustration { width: 150px; }
  .login-page .right { padding: 28px 22px 40px; }
  .login-page .right h1 { font-size: 20px; }

  .toggle-btn { padding: 8px 18px; font-size: 12px; }
  .submit-btn  { font-size: 14px; padding: 12px; }
}

/* Large screens */
@media (min-width: 1100px) {
  .login-page .card { max-width: 960px; }
  .login-page .right { padding: 56px 60px; }
  .login-page .right h1 { font-size: 28px; }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — SIGNUP PAGE
══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 800px) {
  .signup-page { flex-direction: column; }

  .signup-page .left {
    width: 100%;
    min-height: 320px;
    padding: 80px 24px 32px;
  }

  .signup-page .illustration {
    margin-top: 0;
    width: min(360px, 90%);
  }

  .signup-page .right {
    padding: 48px 28px 56px;
    justify-content: center;
  }

  .form-box h1 { font-size: 24px; }
}

/* Mobile */
@media (max-width: 500px) {
  .signup-page .left {
    min-height: 260px;
    padding: 72px 16px 24px;
  }

  .signup-page .logo { top: 20px; left: 20px; }
  .signup-page .illustration { width: min(280px, 95%); }
  .signup-page .right { padding: 36px 20px 50px; }

  .form-box h1 { font-size: 21px; }

  .otp-row { flex-direction: column; }
  .send-otp-btn { width: 100%; height: 48px; }
  .create-btn   { width: 100%; text-align: center; font-size: 14px; }
}
.create-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}