/* Account Page Styles */

/* Split Screen Auth Styles */
.auth-split-section {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  padding-top: 80px; /* Account for fixed navbar */
  box-sizing: border-box;
}

/* Left Panel - Image with border */
.auth-split-wrapper {
  display: grid;
  grid-template-columns: 45% 55%;
  width: 100%;
  min-height: calc(100vh - 110px);
  padding: 1rem;
  gap: 1rem;
  box-sizing: border-box;
  align-items: center;
}

.auth-split-left {
  background-color: #1a1a1a;
  background-image: url('../images/account-left-2.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: calc(100vh - 130px);
  max-height: 700px;
}

.auth-split-left::before {
  display: none;
}

.auth-split-left-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-asterisk {
  color: #ffffff;
  margin-bottom: 2rem;
}

.auth-split-left-text {
  color: #ffffff;
}

.auth-split-tagline {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.auth-split-headline {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 320px;
}

/* Right Panel - Form */
.auth-split-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow-y: auto;
  height: calc(100vh - 130px);
  max-height: 700px;
}

.auth-split-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-form-header {
  margin-bottom: 1.5rem;
}

.auth-asterisk-blue {
  margin-bottom: 1rem;
}

.auth-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.auth-form-header p {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
}

.auth-split-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-split-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-split-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.auth-split-field input {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #111827;
  background: #ffffff;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.auth-split-field input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-split-field input::placeholder {
  color: #9ca3af;
}

.auth-password-wrap {
  position: relative;
}

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

.auth-eye-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-eye-btn:hover {
  color: #6b7280;
}

/* Submit Button - Using navbar color */
.auth-split-btn {
  padding: 0.875rem 1.5rem;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.auth-split-btn:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Social Divider */
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-social-divider span {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* Social Buttons */
.auth-social-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.auth-social-btn {
  flex: 1;
  padding: 0.625rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-social-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.auth-social-btn.instagram-btn {
  color: #e4405f;
}

.auth-social-btn.instagram-btn:hover {
  background: #fdf2f4;
  border-color: #e4405f;
}

/* Switch Text */
.auth-switch-text {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.auth-switch-btn {
  background: none;
  border: none;
  color: #4f46e5;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.account-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Sidebar */
.account-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 2rem;
  height: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.account-user {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.account-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #ffffff;
}

.account-avatar svg {
  width: 40px;
  height: 40px;
}

.account-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.account-email {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.account-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.account-nav-item.active {
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  color: #ffffff;
}

.account-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.account-logout {
  margin-top: 1rem;
  color: #ef4444;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.account-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Main Content */
.account-main {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  min-height: 600px;
}

/* Auth Forms */
.account-auth {
  max-width: 450px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.auth-tab {
  flex: 1;
  padding: 0.875rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  color: #ffffff;
}

.auth-form h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.auth-form > p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

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

.auth-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.auth-submit:hover {
  background: linear-gradient(135deg, #1b263b 0%, #0a101d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.auth-demo {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

/* Tab Headers */
.tab-header {
  margin-bottom: 2rem;
}

.tab-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.tab-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Quick Actions */
.dashboard-quick h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  transform: translateY(-2px);
}

.quick-action-btn svg {
  width: 20px;
  height: 20px;
}

/* Saved Properties Grid */
.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.saved-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.saved-empty svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.saved-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.saved-empty p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

/* Saved Property Card */
.saved-property-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.saved-property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.saved-property-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.saved-property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.saved-property-card:hover .saved-property-img img {
  transform: scale(1.05);
}

.saved-property-remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.saved-property-remove:hover {
  background: #ef4444;
}

.saved-property-remove svg {
  width: 18px;
  height: 18px;
}

.saved-property-info {
  padding: 1.25rem;
}

.saved-property-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.saved-property-location {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.saved-property-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* Inquiries List */
.inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.inquiry-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.inquiry-info p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.inquiry-status {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.inquiry-status.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.inquiry-status.replied {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* Profile Form */
.profile-form {
  max-width: 600px;
}

/* Responsive */
/* Responsive for Split Screen Auth */
@media (max-width: 900px) {
  .auth-split-section {
    padding-top: 100px; /* More space for navbar on mobile */
  }

  .auth-split-wrapper {
    grid-template-columns: 1fr;
    padding: 0.75rem;
    gap: 0.75rem;
    min-height: calc(100vh - 100px);
  }

  .auth-split-left {
    display: block;
    height: 230px;
    min-height: auto;
    max-height: none;
    border-radius: 1rem;
    padding: 1.9rem;
    background-size: fill; /* Fill the frame */
    background-position: center 10%; /* Push image to bottom */
    background-repeat: no-repeat;
    background-color: #1a1a1a; /* Fallback color */
  }

  .auth-split-left-inner {
    display: none; /* Hide text overlay on mobile */
  }

  .auth-split-right {
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .auth-split-form-wrap {
    max-width: 100%;
  }

  .auth-form-header {
    margin-bottom: 1.25rem;
  }

  .auth-form-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .account-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .account-sidebar {
    order: -1;
    padding: 1.5rem;
  }

  .account-user {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .account-avatar {
    width: 60px;
    height: 60px;
  }

  .account-avatar svg {
    width: 30px;
    height: 30px;
  }

  .account-name {
    font-size: 1.1rem;
  }

  .account-email {
    font-size: 0.8rem;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .account-nav-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .account-nav-item svg {
    width: 18px;
    height: 18px;
  }

  .account-logout {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .account-container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .account-sidebar {
    padding: 1.5rem;
    border-radius: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .account-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .account-avatar {
    width: 70px;
    height: 70px;
    margin: 0;
    flex-shrink: 0;
  }

  .account-avatar svg {
    width: 32px;
    height: 32px;
  }

  .account-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .account-email {
    font-size: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .account-nav-item {
    min-width: unset;
    padding: 0.875rem 0.5rem;
    font-size: 0.8125rem;
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
  }

  .account-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .account-logout {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    flex-direction: row;
    justify-content: center;
  }

  .account-main {
    padding: 1.25rem;
    border-radius: 0.75rem;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .tab-header h2 {
    font-size: 1.375rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    flex-direction: column;
    width: 100%;
  }

  .quick-action-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .inquiry-card {
    flex-direction: column;
    text-align: center;
  }

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

/* Heart Icon Button for Property Cards */
.property-save-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.property-save-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.property-save-btn.saved {
  background: #ef4444;
}

.property-save-btn.saved svg {
  fill: #ffffff;
  stroke: #ffffff;
}

.property-save-btn svg {
  width: 20px;
  height: 20px;
  color: #1a1a1a;
  fill: none;
}
