/* ==========================================================================
   Glyphora Login/Signup - Comprehensive Stylesheet
   Dark-themed real estate platform
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Root
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Backgrounds */
  --s-bg-primary: linear-gradient(82.43deg, #111827 17.51%, #03495E 100%);
  --s-bg-card: #FFFFFF0D;  ;
  --s-bg-card-hover: rgba(255, 255, 255, 0.05);
  --s-bg-input: rgba(255, 255, 255, 0.05);
  --s-bg-input-focus: rgba(255, 255, 255, 0.08);
  --s-bg-header: rgba(18, 24, 33, 0.85);
  --s-bg-sidebar: rgba(255, 255, 255, 0.03);
  --s-bg-overlay: rgba(0, 0, 0, 0.6);
  --s-bg-tooltip: #1e2530;

  /* Colors - Accent */
  --s-accent: #D7B29D;
  --s-accent-dark: #C8A68D;
  --s-accent-hover: #e0c0ad;
  --s-accent-muted: rgba(215, 178, 157, 0.12);
  --s-accent-subtle: rgba(215, 178, 157, 0.08);

  /* Colors - Text */
  --s-text-primary: #FFFFFF;
  --s-text-near-white: #F8FAFC;
  --s-text-muted: #97A3B4;
  --s-text-dim: #64748B;
  --s-text-on-accent: #121821;

  /* Colors - Semantic */
  --s-error: #F87171;
  --s-error-badge: #F87171;
  --s-error-bg: rgba(239, 67, 67, 0.1);
  --s-success: #22C55E;
  --s-success-bg: rgba(34, 197, 94, 0.1);
  --s-warning: #D7B29D;
  --s-warning-bg: rgba(245, 158, 11, 0.1);
  --s-info: #3B82F6;
  --s-info-bg: rgba(59, 130, 246, 0.1);

  /* Borders */
  --s-border: rgba(255, 255, 255, 0.08);
  --s-border-light: rgba(255, 255, 255, 0.05);
  --s-border-accent: rgba(215, 178, 157, 0.3);

  /* Radius */
  --s-radius-card: 16px;
  --s-radius-input: 12px;
  --s-radius-btn: 12px;
  --s-radius-btn-sm: 10px;
  --s-radius-btn-lg: 16px;
  --s-radius-pill: 9999px;
  --s-radius-sm: 8px;

  /* Spacing */
  --s-space-xs: 4px;
  --s-space-sm: 8px;
  --s-space-md: 12px;
  --s-space-base: 16px;
  --s-space-lg: 20px;
  --s-space-xl: 24px;
  --s-space-2xl: 32px;
  --s-space-3xl: 40px;
  --s-space-4xl: 48px;

  /* Layout */
  --s-header-height: 82px;
  --s-sidebar-width: 224px;

  /* Typography */
  --s-font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --s-font-light: 300;
  --s-font-regular: 400;
  --s-font-medium: 500;
  --s-font-semibold: 600;
  --s-font-bold: 700;
  --s-font-extrabold: 800;
  --s-font-black: 900;
  --s-text-extrasmall: 10px;
  --s-text-xs: 0.75rem;
  --s-text-sm: 0.8125rem;
  --s-text-base: 0.875rem;
  --s-text-md: 1rem;
  --s-text-lg: 1.125rem;
  --s-text-xl: 1.25rem;
  --s-text-2xl: 1.5rem;
  --s-text-3xl: 1.875rem;
  --s-text-4xl: 2.25rem;

  /* Shadows */
  --s-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --s-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --s-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --s-shadow-glow: 0 0 20px rgba(215, 178, 157, 0.15);

  /* Transitions */
  --s-transition-fast: 150ms ease;
  --s-transition-base: 250ms ease;
  --s-transition-slow: 350ms ease;
}

/* --------------------------------------------------------------------------
   2. Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--s-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Selection */
::selection {
  background: var(--s-accent);
  color: var(--s-text-on-accent);
}

/* Links */
a {
  color: var(--s-accent);
  text-decoration: none;
  transition: color var(--s-transition-fast);
}

a:hover {
  color: var(--s-accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Auth Pages (seller-guest.blade.php, login, signup)
   -------------------------------------------------------------------------- */
   .auth-wrapper {
    display: flex;
    min-height: 100vh;
    background-image: url('/images/auth-background.png'); /* path to your png file */
    background-size: cover;      /* makes image cover full area */
    background-position: center; /* center the image */
    background-repeat: no-repeat;
  }

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/images/auth-background.png');

}

.auth-container {
  width: 100%;
  max-width: 1400px;
  padding: 20px;
}

.auth-card {
  display: flex;
  width: 100%;
  height: 770px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  margin: 0; /* REMOVE old margin */
}

.auth-image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* already good */
    background: linear-gradient(135deg, #1a2233 0%, var(--s-bg-primary) 100%);
    border-radius: 40px; /* reduce from 81px */
    padding: 35px;
}

.auth-image-panel {
  flex: 1.2;
  position: relative;
}

.auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.auth-image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--s-bg-primary) 100%);
  pointer-events: none;
}

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-form-inner {
  width: 100%;
  max-width: 380px;
}

.auth-input-card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px;
  background: #1118274D;
}

.auth-input-card .auth-btn-primary {
  margin-top: 10px;
}

/* Star/grid background pattern */
.auth-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
}

.auth-form-inner {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--s-space-sm);
  margin-bottom: var(--s-space-2xl);
  justify-content: center;
}

.auth-logo img {
  height: 36px;
  width: auto;
}

.auth-heading {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  color: var(--s-text-primary);
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--s-text-primary);
  padding-bottom: 25px;
}

.auth-error-box {
  background: var(--s-error-bg);
  border: 1px solid rgba(239, 67, 67, 0.2);
  border-radius: var(--s-radius-input);
  padding: var(--s-space-md) var(--s-space-base);
  margin-bottom: var(--s-space-base);
  color: var(--s-error-badge);
  font-size: var(--s-text-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-field {
  margin-bottom: var(--s-space-base);
}

.auth-label {
  display: block;
  font-size: var(--s-text-sm);
  font-weight: var(--s-font-medium);
  color: var(--s-text-near-white);
  margin-bottom: var(--s-space-sm);
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--s-bg-input);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-input);
  color: var(--s-text-primary);
  font-family: var(--s-font-family);
  font-size: var(--s-text-base);
  font-weight: var(--s-font-regular);
  outline: none;
  transition: all var(--s-transition-fast);
}

.auth-input::placeholder {
  color: var(--s-text-dim);
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-input:focus {
  background: var(--s-bg-input-focus);
  border-color: var(--s-accent);
  box-shadow: 0 0 0 3px var(--s-accent-subtle);
}

.auth-field-error {
  font-size: var(--s-text-xs);
  color: var(--s-error);
  margin-top: var(--s-space-xs);
}

.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-space-sm);
  width: 100%;
  padding: 12px 20px;
  background: var(--s-accent);
  color: var(--s-text-on-accent);
  font-family: var(--s-font-family);
  font-size: var(--s-text-base);
  font-weight: var(--s-font-semibold);
  border: none;
  border-radius: var(--s-radius-btn);
  cursor: pointer;
  transition: all var(--s-transition-fast);
  line-height: 1.4;
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--s-accent-hover);
  box-shadow: var(--s-shadow-glow);
}

.auth-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-alt-link {
  text-align: center;
  margin-top: var(--s-space-lg);
  font-size: var(--s-text-sm);
  color: var(--s-text-muted);
}

.auth-alt-link a {
  color: var(--s-text-primary);
  font-weight: var(--s-font-medium);
}

.auth-role-toggle {
  display: flex;
  background: var(--s-bg-input);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-btn);
  overflow: hidden;
  margin-bottom: var(--s-space-xl);
}

.auth-role-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  font-size: var(--s-text-sm);
  font-weight: var(--s-font-medium);
  color: var(--s-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--s-transition-fast);
  font-family: var(--s-font-family);
}

.auth-role-tab:hover {
  color: var(--s-text-primary);
}

.auth-role-tab.active {
  background: var(--s-accent);
  color: var(--s-text-on-accent);
  font-weight: var(--s-font-semibold);
}

/* --------------------------------------------------------------------------
   4. Buyer Profile Setup Page
   -------------------------------------------------------------------------- */

/* Wider inner form for profile setup (has 2-col rows) */
.auth-form-inner--wide {
  max-width: 440px;
}

/* Progress bar */
.ps-progress {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  margin-bottom: 6px;
  overflow: hidden;
}
.ps-progress-bar {
  height: 100%;
  background: var(--s-accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.ps-progress-label {
  font-size: 11px;
  color: var(--s-text-dim);
  text-align: right;
  margin-bottom: 20px;
}

/* Avatar upload */
.ps-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ps-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.ps-avatar-icon {
  font-size: 32px;
  color: rgba(255,255,255,0.3);
}
.ps-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-avatar-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ps-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(215,178,157,0.1);
  border: 1px solid rgba(215,178,157,0.25);
  border-radius: var(--s-radius-btn-sm);
  color: var(--s-accent);
  font-family: var(--s-font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ps-upload-btn:hover {
  background: rgba(215,178,157,0.18);
  border-color: var(--s-accent);
}
.ps-upload-hint {
  font-size: 11px;
  color: var(--s-text-dim);
  margin: 0;
}

/* Input card for profile setup — slightly more padding */
.ps-input-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ps-input-card .auth-field {
  margin-bottom: 14px;
}

/* Two-column row */
.ps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ps-row .auth-field {
  margin-bottom: 14px;
}

/* Phone number group */
.ps-phone-group {
  display: flex;
  gap: 8px;
}
.ps-phone-code {
  width: 110px;
  flex-shrink: 0;
  padding: 12px 10px;
  background: var(--s-bg-input);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-input);
  color: var(--s-text-primary);
  font-family: var(--s-font-family);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.ps-phone-code:focus {
  border-color: var(--s-accent);
}
.ps-phone-input {
  flex: 1;
}

/* Select input */
.ps-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2397A3B4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.ps-select option {
  background: #1a2233;
  color: #fff;
}

/* Date input icon color fix */
input[type="date"].auth-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}
