/* ═══════════════════════════════════════════════════════════
   Auth Pages CSS — Minimal & Premium
   ═══════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--background);
}

/* ─── Hero Panel (Cover Image) ─── */
.auth-hero {
  position: relative;
  background-image: url('../Files/smart%20move.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
}

/* Add a very subtle dark gradient overlay so text could be readable if needed, or just keep it clean */
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 116, 186, 0.4), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--surface);
}

.hero-title {
  color: var(--surface);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 80%;
}

/* ─── Form Panel ─── */
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  background: var(--surface);
  position: relative;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 440px;
}

.auth-form-header {
  margin-bottom: 40px;
  text-align: center;
}

.auth-form-header img {
  height: 80px;
  margin-bottom: 24px;
}

.auth-form-header h1 {
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-form-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.phone-group {
  display: flex;
  gap: 12px;
}
.phone-group .country-select { width: 150px; flex-shrink: 0; }
.phone-group .phone-input { flex: 1; }

.password-wrapper { position: relative; }
.password-toggle {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover { color: var(--primary); }

.form-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-footer-text {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
}
.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  margin: 32px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.divider::before { margin-left: 16px; }
.divider::after { margin-right: 16px; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; /* Hide cover image on mobile for minimal look */ }
  .auth-panel { padding: 32px 24px; min-height: 100vh; }
}
