/* ════════════════════════════════════════════
   AUTH PAGE — Centered card (SweldoHub style)
   Navy left panel · White right panel
   ════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; }

/* ── Full-page gradient background ── */
.ac-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #dce8f8 0%, #e8f0fa 50%, #d4e2f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ── Centered card ── */
.ac-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 540px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 30, 70, 0.22), 0 4px 16px rgba(15,30,70,0.08);
}

/* ════════════════════════════
   LEFT PANEL — Navy gradient
   ════════════════════════════ */
.ac-left {
  width: 44%;
  background: linear-gradient(155deg, #0a1628 0%, #1a2e5a 50%, #1e3a6e 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ac-left::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,120,210,0.22) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
}
.ac-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,100,180,0.18) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  pointer-events: none;
}

/* Brand / Logo */
.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.ac-brand-logo {
  width: 42px; height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}
.ac-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.ac-brand-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* Left body (title + features) */
.ac-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.ac-left-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.ac-left-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 280px;
}

/* Feature list */
.ac-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ac-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.ac-feature-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}
.ac-feature-icon svg { width: 15px; height: 15px; }

/* Bottom switch */
.ac-left-switch {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}
.ac-left-switch-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.ac-left-switch-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff; }

/* ════════════════════════════
   RIGHT PANEL — White form
   ════════════════════════════ */
.ac-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 48px;
}

.ac-form-wrap { width: 100%; max-width: 340px; }

/* Form icon */
.ac-form-icon {
  width: 52px; height: 52px;
  background: #eef2ff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #1a2e5a;
  margin-bottom: 20px;
}
.ac-form-icon svg { width: 24px; height: 24px; }
.ac-form-icon--green { background: #f0fdf4; color: #16a34a; }

.ac-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f1d3a;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.ac-form-sub {
  font-size: 13.5px;
  color: #8a9ab8;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Error alert */
.ac-err {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* Form layout */
.ac-form { display: flex; flex-direction: column; gap: 14px; }
.ac-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ac-field { display: flex; flex-direction: column; }

/* Input with icon */
.ac-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ac-input-icon {
  position: absolute;
  left: 13px;
  width: 16px; height: 16px;
  color: #1a2e5a;
  opacity: 0.5;
  pointer-events: none;
  flex-shrink: 0;
}
.ac-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #e0e8f5;
  border-radius: 10px;
  font-size: 13.5px;
  color: #0f1d3a;
  background: #f8faff;
  outline: none;
  font-family: inherit;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ac-input-wrap input:focus {
  border-color: #1a2e5a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,46,90,0.08);
}
.ac-input-wrap input::placeholder { color: #b0bdd5; font-weight: 400; }

/* Password toggle button */
.ac-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s, background 0.2s;
}
.ac-password-toggle:hover {
  color: #1a2e5a;
  background: rgba(26,46,90,0.05);
}
.ac-password-toggle svg {
  width: 18px;
  height: 18px;
}
.ac-input-wrap input {
  padding-right: 44px;
}

/* Submit button */
.ac-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: #1a2e5a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26,46,90,0.25);
  margin-top: 6px;
  letter-spacing: 0.2px;
}
.ac-btn svg { width: 17px; height: 17px; }
.ac-btn:hover { background: #253f7a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,46,90,0.3); }
.ac-btn:active { transform: translateY(0); }
.ac-btn--green { background: #16a34a; box-shadow: 0 4px 14px rgba(22,163,74,0.25); }
.ac-btn--green:hover { background: #15803d; box-shadow: 0 6px 20px rgba(22,163,74,0.3); }

/* Bottom switch */
.ac-bottom-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}
.ac-switch-link {
  background: none;
  border: none;
  color: #1a2e5a;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
  margin-left: 3px;
  transition: color 0.2s;
  text-decoration: none;
}
.ac-switch-link:hover { color: #2d4a8a; text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .ac-card { max-width: 580px; flex-direction: column; min-height: auto; }
  .ac-left { width: 100%; padding: 36px 36px 28px; }
  .ac-left-body { padding: 20px 0 0; }
  .ac-left-desc { display: none; }
  .ac-left-title { font-size: 1.5rem; }
  .ac-right { padding: 36px; }
}
@media (max-width: 480px) {
  .ac-bg { padding: 20px 12px; }
  .ac-left { padding: 28px 24px 20px; }
  .ac-right { padding: 28px 24px; }
  .ac-field-row { grid-template-columns: 1fr; }
  .ac-features { display: none; }
}
