/* JobGara Auth pages — professional login / signup */
.jg-auth-page {
  min-height: calc(100vh - var(--jg-header-height, 68px));
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(21, 94, 239, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(245, 179, 1, 0.1), transparent 50%),
    var(--jg-bg, #f0f3f8);
  padding: 2rem 1rem 3.5rem;
}

.jg-auth-shell {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border: 1px solid var(--jg-border, #e4e7ec);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.1);
  min-height: 560px;
}

.jg-auth-shell.is-signup {
  max-width: 980px;
  grid-template-columns: 0.9fr 1.1fr;
}

.jg-auth-aside {
  position: relative;
  padding: 2.75rem 2.5rem;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(245, 179, 1, 0.22), transparent 50%),
    linear-gradient(155deg, #0b1220 0%, #122a5c 48%, #155eef 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.jg-auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.jg-auth-aside > * {
  position: relative;
  z-index: 1;
}

.jg-auth-aside .jg-brand {
  color: #fff !important;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: inline-flex;
}

.jg-auth-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.jg-auth-aside h2 {
  color: #fff !important;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.jg-auth-aside h2 span {
  color: var(--jg-accent, #f5b301);
}

.jg-auth-aside p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.jg-auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.jg-auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
}

.jg-auth-points li i {
  color: var(--jg-accent, #f5b301);
  margin-top: 0.15rem;
}

.jg-auth-panel {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.jg-auth-panel-head {
  margin-bottom: 1.5rem;
}

.jg-auth-panel-head h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--jg-text, #101828);
}

.jg-auth-panel-head p {
  margin: 0;
  color: var(--jg-text-muted, #667085);
  font-size: 0.95rem;
}

.jg-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  background: var(--jg-surface-2, #f7f9fc);
  border: 1px solid var(--jg-border, #e4e7ec);
  border-radius: 12px;
  padding: 0.3rem;
}

.jg-auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--jg-text-muted, #667085) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.jg-auth-tabs a.active {
  background: #fff;
  color: var(--jg-primary, #155eef) !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.jg-auth-form .form-label,
.jg-auth-form label.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jg-text, #101828);
  margin-bottom: 0.4rem;
}

.jg-auth-form .form-control,
.jg-auth-form .form-select,
.jg-auth-form select.form-control {
  min-height: 48px !important;
  border-radius: 11px !important;
  border: 1px solid var(--jg-border, #e4e7ec) !important;
  padding: 0.7rem 0.95rem !important;
  font-size: 0.95rem !important;
  background: #fff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jg-auth-form .form-control:focus,
.jg-auth-form .form-select:focus {
  border-color: var(--jg-primary, #155eef) !important;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12) !important;
}

.jg-auth-form .mb-3,
.jg-auth-form .form-group {
  margin-bottom: 1rem !important;
}

.jg-auth-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.jg-pass-wrap {
  position: relative;
}

.jg-pass-wrap .jg-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--jg-text-muted, #667085);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.15rem;
}

.jg-auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 0.35rem;
  border-radius: 11px !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
  letter-spacing: -0.01em;
}

.jg-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.15rem 0;
  color: var(--jg-text-muted, #667085);
  font-size: 0.8rem;
  font-weight: 600;
}

.jg-auth-divider::before,
.jg-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--jg-border, #e4e7ec);
}

.jg-social-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.jg-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--jg-border, #e4e7ec);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.jg-social-btn:hover {
  border-color: var(--jg-primary, #155eef);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.jg-social-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.jg-auth-footer-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--jg-text-muted, #667085);
}

.jg-auth-footer-links a {
  color: var(--jg-primary, #155eef);
  font-weight: 700;
  text-decoration: none;
}

.jg-auth-footer-links a:hover {
  text-decoration: underline;
}

.jg-auth-alert {
  border-radius: 11px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.jg-auth-alert.success {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
}

.jg-auth-alert.danger {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.jg-auth-captcha {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.jg-auth-captcha img {
  border-radius: 8px;
  border: 1px solid var(--jg-border, #e4e7ec);
  height: 44px;
}

.jg-auth-meta {
  font-size: 0.8rem;
  color: var(--jg-text-muted, #667085);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .jg-auth-page {
    padding: 1rem 0.85rem 2rem;
  }

  .jg-auth-shell,
  .jg-auth-shell.is-signup {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: 0;
  }

  .jg-auth-panel {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .jg-auth-aside {
    padding: 1.15rem 1.35rem 1.2rem;
    min-height: auto;
  }

  .jg-auth-aside .jg-brand {
    display: none;
  }

  .jg-auth-aside .jg-auth-points {
    display: none;
  }

  .jg-auth-aside h2 {
    font-size: 1.28rem;
    margin-bottom: 0.4rem;
  }

  .jg-auth-aside p {
    margin-bottom: 0;
    font-size: 0.88rem;
  }

  .jg-auth-form .form-row-2 {
    grid-template-columns: 1fr;
  }
}
