/* Ultra-Pro Login Page Styles - RealtyDhaba Theme */

:root {
  --rd-navy: #151247;
  --rd-navy-dark: #0e0b34;
  --rd-navy-light: #1e1962;
  --rd-purple-gradient: linear-gradient(135deg, #151247 0%, #1f196a 50%, #2b238d 100%);
  --rd-orange: #bd4a3c;
  --rd-orange-gradient: linear-gradient(135deg, #bd4a3c 0%, #d9534f 100%);
  --rd-orange-hover: #a33e31;
  --rd-orange-bright: #ff6e5a;
  --rd-brand-gradient: linear-gradient(135deg, #ff7e6b 0%, #bd4a3c 100%);
  --rd-bg-light: #f4f7fa;
  --rd-text-dark: #151247;
  --rd-text-muted: #64748b;
  --rd-border: #e2e8f0;
  --rd-shadow-card: 0 20px 40px -12px rgba(21, 18, 71, 0.18);
  --rd-shadow-hover: 0 25px 50px -12px rgba(21, 18, 71, 0.28);
}

body.login-page-redesigned {
  background-color: var(--rd-bg-light);
  font-family: 'Inter', 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--rd-text-dark);
}

.login-landing-container {
  width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Sticky Header Bar on Scroll - Matching Website Header */
.login-navbar-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.login-hero-header {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brand-capsule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.login-brand-capsule img {
  height: 42px;
  width: auto;
  display: block;
}

.header-action-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.register-pill-btn {
  border: 1px solid var(--rd-navy);
  background: var(--rd-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.register-pill-btn:hover {
  background: var(--rd-orange);
  color: #ffffff;
  border-color: var(--rd-orange);
  box-shadow: 0 4px 14px rgba(189, 74, 60, 0.3);
  transform: translateY(-1px);
}

.home-outline-btn {
  border: 1px solid var(--rd-border);
  background: #ffffff;
  color: var(--rd-navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-outline-btn:hover {
  background: #f8fafc;
  border-color: var(--rd-navy);
  color: var(--rd-navy);
}

/* Main Hero Wrapper with Curved Bottom */
.login-hero-wrapper {
  background: var(--rd-purple-gradient);
  color: #ffffff;
  padding: 110px 24px 100px 24px;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  position: relative;
  box-shadow: 0 12px 35px rgba(21, 18, 71, 0.2);
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.login-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Left Content Area */
.login-hero-left {
  padding-right: 15px;
}

.login-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.login-badge-tag i {
  color: var(--rd-orange-bright);
}

.login-main-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.login-highlight-pill {
  color: var(--rd-orange-bright);
  background: var(--rd-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.login-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.login-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(189, 74, 60, 0.2);
  border: 1px solid rgba(255, 110, 90, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rd-orange-bright);
  font-size: 18px;
  flex-shrink: 0;
}

/* Trust Badges Strip */
.login-trust-badges {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-stat-item {
  display: flex;
  flex-direction: column;
}

.trust-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.trust-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Right Side Floating Login Card */
.login-floating-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--rd-shadow-card);
  border: 1px solid var(--rd-border);
  color: var(--rd-text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-floating-card:hover {
  box-shadow: var(--rd-shadow-hover);
}

.card-header-area {
  text-align: center;
  margin-bottom: 28px;
}

.card-brand-icon {
  width: 56px;
  height: 56px;
  background: var(--rd-bg-light);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--rd-border);
}

.card-brand-icon img {
  width: 34px;
  height: auto;
}

.card-title-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--rd-navy);
  margin-bottom: 6px;
}

.card-sub-text {
  font-size: 14px;
  color: var(--rd-text-muted);
}

/* Input Fields Styling */
.form-group-custom {
  margin-bottom: 20px;
}

.form-label-custom {
  font-weight: 600;
  font-size: 13px;
  color: var(--rd-navy);
  margin-bottom: 6px;
  display: block;
}

.input-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-left-icon {
  position: absolute;
  left: 14px;
  color: var(--rd-text-muted);
  font-size: 17px;
  pointer-events: none;
  z-index: 5;
  transition: color 0.2s ease;
}

.form-control-custom {
  width: 100%;
  height: 48px;
  padding: 10px 42px 10px 42px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rd-navy);
  background-color: #f8fafc;
  border: 1px solid var(--rd-border);
  border-radius: 12px;
  transition: all 0.25s ease;
  outline: none;
}

.form-control-custom:focus {
  background-color: #ffffff;
  border-color: var(--rd-navy);
  box-shadow: 0 0 0 4px rgba(21, 18, 71, 0.1);
}

.input-box-wrapper:focus-within .input-left-icon {
  color: var(--rd-navy);
}

.form-control-custom.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--rd-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--rd-navy);
}

/* Remember Me & Forgot Password */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.custom-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--rd-orange);
  cursor: pointer;
  border-radius: 4px;
}

.custom-checkbox-label {
  color: var(--rd-text-dark);
  font-weight: 500;
}

.forgot-link-btn {
  color: var(--rd-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link-btn:hover {
  color: var(--rd-orange-hover);
  text-decoration: underline;
}

/* Submit Button */
.btn-submit-brand {
  width: 100%;
  height: 50px;
  background: var(--rd-orange-gradient);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(189, 74, 60, 0.35);
  transition: all 0.25s ease;
}

.btn-submit-brand:hover {
  background: linear-gradient(135deg, #a33e31 0%, #bd4a3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(189, 74, 60, 0.45);
}

.btn-submit-brand:active {
  transform: translateY(0);
}

/* Footer Link inside Card */
.card-bottom-register {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rd-border);
  text-align: center;
  font-size: 14px;
  color: var(--rd-text-muted);
}

.card-bottom-register a {
  color: var(--rd-navy);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-bottom-register a:hover {
  color: var(--rd-orange);
  text-decoration: underline;
}

/* Simple Footer */
.login-simple-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--rd-text-muted);
  background: var(--rd-bg-light);
}

.login-simple-footer a {
  color: var(--rd-navy);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
}

.login-simple-footer a:hover {
  color: var(--rd-orange);
  text-decoration: underline;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .login-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .login-hero-left {
    text-align: center;
    padding-right: 0;
  }

  .login-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .login-feature-list {
    align-items: center;
  }

  .login-trust-badges {
    justify-content: center;
  }

  .login-hero-wrapper {
    padding: 100px 20px 60px 20px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }
}

@media (max-width: 576px) {
  .login-main-title {
    font-size: 30px;
  }

  .login-subtitle {
    font-size: 15px;
  }

  .login-floating-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .trust-stat-num {
    font-size: 20px;
  }

  .trust-stat-label {
    font-size: 12px;
  }

  .login-navbar-sticky {
    padding: 10px 16px;
  }

  .header-action-links .home-outline-btn {
    display: none;
  }
}
