/* MALSARA.LK - ETHEREAL ESTATE COLOR SYSTEM */
:root {
  /* Core Brand Colors */
  --primary: #C84B7A;
  --heading: #8B1A3A;
  --accent: #D4607E;
  --soft: #E8A0B4;

  /* Background System */
  --bg-main: #FDF7F5;
  --bg-alt: #F2EDE8;
  --white: #FFFFFF;

  /* Structure Colors */
  --border: #E8E3DC;
  --border-light: #EEE9E3;

  /* Text System */
  --text-main: #1A1A1A;
  --text-muted: #6B6560;
  --text-light: #A8A29E;

  /* Special UI Colors */
  --gold: #F5C800;
  --success: #6FCF97;
  --error: #E57373;
}

/* Modern Login Page Styles */
body {
  background: #ffffff;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;
  color: var(--text-main);
}

.login-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-wrapper {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  margin: 0 auto;
}

.login-header {
  text-align: center;
  padding: 40px 30px 20px;
  background: transparent;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: #982855;
  margin: 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-main);
  margin-top: 10px;
  font-weight: 400;
}

.login-body {
  /* WIDTH-RELATED: slightly more horizontal breathing room on the wider card */
  padding: 20px 50px;
}

.login-tabs {
  display: flex;
  margin-bottom: 30px;
  background: #F4EEED;
  border-radius: 9999px;
  padding: 4px;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: #4A4A4A;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab-btn.active {
  background: #C44C78;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(152, 40, 85, 0.2);
}

.tab-btn:hover:not(.active) {
  color: #982855;
}

.login-form {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.login-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group>label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  text-align: left;
}

.verification-methods div label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #E5E0DF;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: #982855;
  box-shadow: 0 0 0 4px rgba(152, 40, 85, 0.08);
  background: var(--white);
}

.form-control::placeholder {
  color: #8C8C8C;
}

.input-with-icon .form-control {
  padding-left: 45px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #8C8C8C;
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: #982855;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(152, 40, 85, 0.25);
  background: #801F44;
}

.login-footer {
  text-align: center;
  padding: 10px 30px 20px;
  background: transparent;
}

.link {
  font-size: 14px;
  color: var(--text-main);
}

.link a {
  color: #982855;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link a:hover {
  text-decoration: underline;
}

.forgot-link {
  color: #982855;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Floating decorative elements */
.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  animation: float-up 6s ease-in-out infinite;
  opacity: 0.3;
}

.floating-heart:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-heart:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.floating-heart:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

/* Animations */
@keyframes shimmer-gradient {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-up {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-wrapper {
    margin: 10px;
    max-width: 100%;
  }

  .login-header {
    padding: 20px;
  }

  .login-title {
    font-size: 36px;
  }

  .login-body {
    padding: 20px;
  }

  .form-control {
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-login {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }

  .login-header {
    padding: 15px;
  }

  .login-title {
    font-size: 32px;
  }

  .login-body {
    padding: 15px;
  }

  .form-control {
    padding: 10px 14px;
    font-size: 13px;
  }

  .btn-login {
    padding: 10px;
    font-size: 13px;
  }
}

/* Popup Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  padding: 30px;
  text-align: center;
  transform: scale(0.8);
  transition: all 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  pointer-events: auto;
}

.popup-overlay.show .popup-modal {
  transform: scale(1);
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary);
}

.popup-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 15px;
}

.popup-message {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

.popup-agent-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.popup-agent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 75, 122, 0.3);
  text-decoration: none;
  color: var(--white);
  background: #B63E6C;
}

.popup-close-btn {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close-btn:hover {
  background: var(--border);
  color: var(--text-main);
}

/* Password Toggle Styles */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-control {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
  font-size: 18px;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--primary);
}

.password-toggle i {
  pointer-events: none;
}

/* Mobile Fixes for Agent Popup */
@media (max-width: 576px) {
  .popup-modal {
    padding: 25px 20px;
    width: 92%;
    margin: 0 15px;
  }

  .popup-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .popup-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .popup-agent-btn {
    width: 100%;
    padding: 12px 15px;
    font-size: 13px;
    margin-bottom: 10px;
  }

  .popup-close-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 13px;
  }

  .popup-icon {
    font-size: 36px;
    margin-bottom: 15px;
  }
}

.video-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid #E5E0DF;
  border-radius: 9999px;
  color: #982855;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-pill:hover {
  background: rgba(152, 40, 85, 0.05);
}

.video-pill i {
  font-size: 14px;
}

/* Social Buttons */
.social-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid #E5E0DF;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-social:hover {
  background: #F9F9F9;
  border-color: #D1D1D1;
}

.btn-social img {
  width: 18px;
  height: 18px;
}

/* Secure footer text */
.secure-footer {
  text-align: center;
  padding: 15px;
  color: #A3A3A3;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #F2F2F2;
  margin: 10px 30px 20px;
}

/* Checkbox styling */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid #E5E0DF;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #982855;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin-top: -5px;
}

/* ============================
   LEFT PANEL — GLASS + PETALS
   ============================ */

.login-image-panel {
  position: relative;
  width: 50%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6efe9;
  padding: 40px;
}

/* Soft blurred warm background, curtain-like */
.login-panel-bg {
  display: none;
}

.login-image-panel.no-image .login-panel-bg {
  filter: blur(2px);
}

/* Frosted glass card */
.login-glass-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Circular couple photo */
.login-couple-photo {
  position: relative;
  width: 100%;
  height: 350px;
  margin: 0 auto 0;
  border-radius: 16px;
  overflow: hidden;
}

.login-couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-image-panel.no-image .login-couple-photo {
  background: linear-gradient(135deg, #F2C4D3, #E8A0B4);
  border-radius: 50%;
}

/* Verified-style checkmark badge */
.login-verified-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  border-radius: 20px;
  background: #ffffff;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Title & subtitle inside the glass card */
.login-image-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--heading, #8B1A3A);
  margin: 0 0 10px;
}

.login-image-panel-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted, #6B6560);
  margin: 0;
}

/* Decorative petals — pure CSS shapes, no assets */
.login-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.petal {
  position: absolute;
  display: block;
  border-radius: 50% 0 50% 50%;
  opacity: 0.85;
}

.petal.rose {
  width: 22px;
  height: 16px;
  background: linear-gradient(135deg, #D4607E, #A82454);
}

.petal.jasmine {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF, #F3E9DA);
}

.p1 {
  top: 8%;
  left: 12%;
  transform: rotate(20deg);
}

.p2 {
  top: 78%;
  left: 8%;
  transform: rotate(-40deg);
}

.p3 {
  top: 88%;
  left: 22%;
}

.p4 {
  top: 15%;
  left: 82%;
  transform: rotate(120deg);
}

.p5 {
  top: 30%;
  left: 90%;
}

.p6 {
  top: 92%;
  left: 60%;
  transform: rotate(60deg);
}

.p7 {
  top: 6%;
  left: 55%;
}

.p8 {
  top: 70%;
  left: 88%;
  transform: rotate(-15deg);
}

/* Keep panel responsive — falls back gracefully like before */
@media (max-width: 768px) {
  .login-image-panel {
    display: none;
  }
}

/* Form Panel */
.login-form-panel {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .login-form-panel {
    width: 100%;
  }
}


/* Center form contents inside the right panel */
.login-form-panel>div {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================================
   Custom Video Preview Card for Forms
   ===================================================================== */
.video-preview-card {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 16px;
  background: url('../assets/images/video1.jpeg') center/cover no-repeat;
  margin-bottom: 25px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.video-preview-card:hover .video-preview-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.video-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: pulsePlay 2s infinite;
}

@keyframes pulsePlay {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.video-preview-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================================
   Premium Radio Buttons for Verification Method
   ===================================================================== */
.verification-methods>div {
  display: flex;
  gap: 12px;
  margin-top: 5px;
  width: 100%;
}

.verification-methods div label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin: 0;
  background: #F9F9F9;
  border: 1px solid #E5E0DF;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  color: #444;
  transition: all 0.2s ease;
}

.verification-methods div label:hover {
  background: #F5EAEB;
  border-color: var(--accent);
}

.verification-methods div label:has(input:checked) {
  background: rgba(200, 75, 122, 0.05);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(200, 75, 122, 0.1);
}

.verification-methods input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin: 0;
}
/* Facebook Brand Button */
.btn-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 360px;
  max-width: 100%;
  height: 44px;
  background-color: #1877F2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  font-family: Roboto, arial, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}
.btn-facebook:hover {
  background-color: #166FE5;
  color: white;
}
.btn-facebook:active {
  transform: scale(0.98);
}
.btn-facebook i {
  font-size: 18px;
}
