/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #97BC62;
  --secondary-dark: #7fa352;
  --accent-color: #00AFF0;
  --accent-dark: #0099d4;
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --danger-color: #F44336;
  --dark-color: #075E54;
  --light-color: #f8f9fa;
  --text-dark: #333333;
  --text-light: #6c757d;
  --text-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Form Field Height */
  --field-height: 45px;
  
  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* ===== NO GUTTERS LAYOUT ===== */
.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* ===== HEADER STYLES ===== */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
}

.social_icon_contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social_icon_contact p {
  margin: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.social_icon_contact p:hover {
  background: var(--warning-color);
  transform: translateY(-2px);
}

.social_icon_contact a {
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.propety_access_button {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
}

.propety_access_button .btn-link {
  color: var(--text-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  font-weight: 500;
}

.propety_access_button .btn-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: var(--space-sm) 0;
}

.navbar-brand img {
  height: 100px;
  transition: var(--transition-normal);
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar .navbar-nav {
  margin-left: auto;
}

.navbar .navbar-nav li {
  margin: 0 var(--space-md);
}

.navbar .navbar-nav li a {
  color: var(--text-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.navbar .navbar-nav li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== AUTH PAGES - SIDE BY SIDE LAYOUT ===== */
.auth-layout {
  min-height: auto;
  display: flex;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/img/background_img/login_bg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
}

.welcome-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 500px;
}

.company_logo {
  margin-bottom: var(--space-xl);
}

.company_logo img {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.main_heading {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.heading_caption {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
}

.welcome-features {
  text-align: left;
  margin-top: var(--space-2xl);
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.feature-item i {
  font-size: 1.5rem;
  margin-right: var(--space-md);
  width: 40px;
  text-align: center;
}

.feature-item span {
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* Form Section */
.form-section {
  background: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.form-container {
  width: 100%;
  max-width: 450px;
  padding: var(--space-2xl);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.form_main_heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.form-header p {
  color: var(--text-light);
  font-size: var(--font-size-base);
}

/* ===== FORM CONTROLS - 45px HEIGHT ===== */
.input-field {
  margin: 0;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.input-group {
  height: var(--field-height);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid #f0f0f0;
  transition: var(--transition-normal);
}

.input-group:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.1);
  transform: translateY(-2px);
}

.input-group-text {
  height: var(--field-height);
  min-width: 50px;
  background: linear-gradient(135deg, #F48222 0%, #e07b1d 100%);
  border: none;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
}

.form-control {
  height: var(--field-height);
  border: none;
  padding: 0 var(--space-lg);
  font-size: var(--font-size-base);
  background: #fafafa;
}

.form-control:focus {
  background: var(--text-white);
  box-shadow: none;
}

.password-toggle {
  cursor: pointer;
  transition: var(--transition-normal);
}

.password-toggle:hover {
  background: #d2691e !important;
}

/* File input */
input[type="file"].form-control {
  padding: var(--space-sm) var(--space-lg);
  line-height: calc(var(--field-height) - var(--space-md));
}

/* Buttons */
.btn, .btn-auth, .btn-primary, .btn-info {
  height: var(--field-height);
  min-height: var(--field-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-login, .btn-signup {
  height: 50px;
  width: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  color: var(--text-white);
  font-size: var(--font-size-lg);
  margin-top: var(--space-md);
}

.btn-login:hover, .btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 175, 240, 0.3);
}

.account-button .btn {
  background: linear-gradient(135deg, #F48222 0%, #e07b1d 100%);
  color: var(--text-white);
  width: 100%;
}

.account-button .btn:hover {
  background: linear-gradient(135deg, #D2691E 0%, #e09662 100%);
  transform: translateY(-2px);
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid #f0f0f0;
}

.form-footer p {
  color: var(--text-light);
  margin: 0;
}

.form-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ===== SEARCH PAGE STYLES ===== */
.content {
  padding: 0;
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.box {
  background: var(--text-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: none;
  border: none;
}

.box-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: var(--space-md);
  text-align: center;
  border-bottom: none;
}

.box-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box-body {
  padding: var(--space-lg) 0;
}

/* Search Form Card */
.search-card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition-normal);
  margin-bottom: 0;
}

.search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.search-card .card-header {
  background: linear-gradient(135deg, var(--dark-color) 0%, #05443d 100%);
  color: var(--text-white);
  padding: var(--space-lg);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.search-card .card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0;
}

.search-card .card-body {
  padding: var(--space-md);
}

.search-card .card-footer {
  background: var(--light-color);
  border-top: 1px solid var(--border-color);
  padding: var(--space-md);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  justify-content: center;
}

/* Search Input Field */
#phone_id {
  height: var(--field-height);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-lg);
  font-size: var(--font-size-base);
  transition: var(--transition-normal);
  background: #fafafa;
  width: 100%;
}

#phone_id:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.1);
  background: var(--text-white);
  outline: none;
}

#phone_id::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

/* Search Button */
.search-card .btn {
  height: var(--field-height);
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0 var(--space-2xl);
  font-weight: 600;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.search-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 175, 240, 0.3);
}

/* Search Results Section */
#get_search_result {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* Result Messages */
.filter_message_post {
  text-align: center;
  font-size: var(--font-size-xl);
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  padding: var(--space-md);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.filter_message_success {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  padding: var(--space-md);
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--success-color);
}

.filter_message_danger {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--danger-color);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  padding: var(--space-md);
  background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--danger-color);
}

/* Result Strong Text */
#get_search_result strong {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--space-xs);
  display: inline-block;
  margin-right: var(--space-sm);
}

/* Search Result Container */
.search-result {
  background: var(--text-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: var(--space-2xl);
  margin-top: var(--space-xs);
  animation: slideInUp 0.5s ease;
  border: 1px solid var(--border-color);
}


@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER STYLES ===== */
footer {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: var(--text-white);
  text-align: center;
  padding: var(--space-lg) 0;
  position: relative;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.welcome-section, .form-section {
  animation: fadeInUp 0.6s ease-out;
}

.form-section {
  animation-delay: 0.2s;
}

/* ===== LOADING STATES ===== */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 1s linear infinite;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

/* Success Animation */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.search-success {
  animation: successPulse 0.6s ease;
}

/* Error Animation */
@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.search-error {
  animation: errorShake 0.5s ease;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
  .welcome-content,
  .form-container {
    padding: var(--space-xl);
  }
}

@media (max-width: 991.98px) {
  .auth-layout {
    flex-direction: column;
    min-height: auto;
  }
  
  .welcome-section {
    height: auto;
    min-height: 300px;
  }
  
  .form-section {
    height: auto;
  }
  
  .welcome-content {
    max-width: 100%;
    padding: var(--space-lg);
  }
  
  .form-container {
    max-width: 100%;
    padding: var(--space-xl);
  }
  
  .box-body {
    padding: var(--space-xl);
  }
  
  .search-card .card-body {
    padding: var(--space-lg);
  }
  
  #get_search_result {
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
  }
}

@media (max-width: 767.98px) {
  .header .row {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .social_icon_contact {
    justify-content: center;
  }
  
  .propety_access_button {
    justify-content: center;
  }
  
  .navbar .navbar-nav {
    margin-top: var(--space-md);
  }
  
  .navbar .navbar-nav li {
    margin: var(--space-xs) 0;
    text-align: center;
  }
  
  .welcome-section {
    height: auto;
    min-height: 250px;
  }
  
  .main_heading {
    font-size: var(--font-size-2xl);
  }
  
  .form_main_heading {
    font-size: var(--font-size-xl);
  }
  
  .welcome-content {
    padding: var(--space-md);
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .content {
    padding: var(--space-xl) 0;
  }
  
  .box {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
  }
  
  .box-header {
    padding: var(--space-lg);
  }
  
  .box-title {
    font-size: var(--font-size-xl);
  }
  
  .box-body {
    padding: var(--space-lg);
  }
  
  .search-card .card-body {
    padding: var(--space-md);
  }
  
  .search-result {
    padding: var(--space-xl);
    margin-top: var(--space-lg);
  }
  
  .filter_message_post {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 575.98px) {
  .welcome-section {
    height: auto;
    min-height: 200px;
  }
  
  .form-container {
    padding: var(--space-md);
  }
  
  .welcome-content {
    padding: var(--space-md);
  }
  
  .feature-item {
    padding: var(--space-sm);
  }
  
  .feature-item i {
    font-size: 1.2rem;
    margin-right: var(--space-sm);
  }
  
  .content {
    padding: var(--space-lg) 0;
  }
  
  .box {
    border-radius: var(--radius-md);
  }
  
  .box-header {
    padding: var(--space-md);
  }
  
  .box-body {
    padding: var(--space-md);
  }
  
  .search-card .card-header {
    padding: var(--space-md);
  }
  
  .search-card .card-body {
    padding: var(--space-sm);
  }
  
  .search-card .card-footer {
    padding: var(--space-md);
  }
  
  #get_search_result {
    padding: var(--space-md);
    margin: var(--space-md) 0;
  }
  
  .search-result {
    padding: var(--space-lg);
  }
  
  .filter_message_post {
    font-size: var(--font-size-base);
    padding: var(--space-sm);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.form-control:focus,
.btn:focus,
.input-group:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== ERROR STATES ===== */
.alert {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: none;
  font-weight: 500;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
  color: #721c24;
  border-left: 4px solid var(--danger-color);
}

.is-invalid {
  border-color: var(--danger-color) !important;
}

.invalid-feedback {
  color: var(--danger-color);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}