/* ==============================================================================
   TRAVEL AGENT CRM — CLEAN AUTHENTICATION STYLING
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --bg-color: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 13px;
}

.auth-wrapper {
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

/* Left Hero Brand */
.auth-hero {
  background: #0f172a;
  color: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #1e293b;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.hero-main {
  margin: 24px 0;
}

.hero-headline {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #f8fafc;
}

.hero-subtitle {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
}

.hero-footer {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

/* Right Form Side */
.auth-form-container {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-desc {
  color: var(--text-muted);
  font-size: 12.5px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

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

.input-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.form-input {
  width: 100%;
  height: 36px;
  padding: 6px 12px 6px 32px;
  font-size: 12.5px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: all 0.15s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
}

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

.btn-submit {
  width: 100%;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0.8;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.demo-accounts {
  margin-top: 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
}

.demo-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.demo-chip {
  display: inline-block;
  background: #e2e8f0;
  color: var(--dark);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  cursor: pointer;
  margin-top: 2px;
  margin-right: 4px;
}

.demo-chip:hover {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .auth-form-container {
    padding: 24px;
  }
}
