/* =============================================================
   auth-split.css — FAB ERP Login / Register page styles
   ============================================================= */

/* Page background */
body.auth-split-page {
  background: #fdf8f4;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Decorative background circles */
body.auth-split-page::before {
  content: '';
  position: fixed;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 140, 50, 0.06);
  pointer-events: none;
}

body.auth-split-page::after {
  content: '';
  position: fixed;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 140, 50, 0.05);
  pointer-events: none;
}

/* Top navigation bar */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-20) 40px;
  position: relative;
  z-index: 10;
}

.auth-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-topbar-logo img {
  height: 40px;
  object-fit: contain;
}

.auth-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-topbar-text {
  font-size: 0.9rem;
  color: #555;
}

.auth-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-12) 20px;
  border: 2px solid #f97316;
  border-radius: var(--radius-lg);
  color: #f97316;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.auth-topbar-btn:hover {
  background: #f97316;
  color: #fff;
  text-decoration: none;
}

/* Main content area */
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: var(--space-20);
}

/* Auth card */
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: var(--space-64) 50px 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
}

/* Wider card for register page */
.auth-card.auth-card--wide {
  max-width: 700px;
}

/* Logo inside card */
.auth-card-logo {
  text-align: center;
  margin-bottom: var(--space-24);
}

.auth-card-logo img {
  height: 70px;
  object-fit: contain;
}

/* Card heading */
.auth-card-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.auth-card-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin: 0 0 30px;
}

/* Form fields */
.auth-field {
  margin-bottom: var(--space-16);
}

.auth-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: var(--space-8);
}

.auth-field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.auth-field-input-wrap:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.auth-field-icon {
  color: #aaa;
  font-size: 1rem;
  margin-right: var(--space-12);
  flex-shrink: 0;
}

.auth-field-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
  height: 100%;
}

.auth-field-input::placeholder {
  color: #bbb;
}

.auth-field-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: var(--space-4);
  flex-shrink: 0;
}

.auth-field-toggle:hover {
  color: #666;
}

/* Remember me + forgot password row */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-24);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f97316;
}

.auth-forgot-link {
  font-size: 0.85rem;
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}

.auth-forgot-link:hover {
  text-decoration: underline;
  color: #ea580c;
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: var(--space-24) 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e8e8;
}

.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 16px;
  font-size: 0.85rem;
  color: #999;
}

/* Register link */
.auth-register-link {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.auth-register-link a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
}

.auth-register-link a:hover {
  text-decoration: underline;
}

/* Footer */
.auth-footer {
  text-align: center;
  padding: var(--space-20) 40px 30px;
}

.auth-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.auth-footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #777;
}

.auth-footer-badge i {
  color: #f97316;
}

.auth-footer-copy {
  font-size: 0.8rem;
  color: #999;
}

/* Error messages */
.auth-field .help-block {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: var(--space-8);
}

.auth-field.has-error .auth-field-input-wrap {
  border-color: #dc2626;
}

/* Register page scrollable form */
.auth-register-scroll {
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: var(--space-8);
  margin-top: var(--space-12);
}

.auth-register-scroll::-webkit-scrollbar {
  width: 4px;
}

.auth-register-scroll::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: var(--radius-xs);
}

.auth-register-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: var(--radius-xs);
}

.auth-register-scroll::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-topbar {
    padding: var(--space-16) 20px;
  }

  .auth-card {
    padding: var(--space-32) 24px;
    margin: 0 16px;
  }

  .auth-footer-badges {
    flex-direction: column;
    gap: 8px;
  }
}
