/* ── Drop Your Resume / candidate sign-in modal ──
   Loaded globally (footer.php) since its trigger is global nav chrome.
   Self-contained — mirrors .blog-search-modal's shell but doesn't depend on
   content.css (which is opt-in per-page, not loaded on every page). */

.auth-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.auth-modal.open { display: flex; }
.auth-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55); backdrop-filter: blur(3px);
  animation: authBackdropIn 0.3s ease;
}
@keyframes authBackdropIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal-box {
  position: relative; z-index: 1;
  display: flex; width: min(860px, 96vw);
  max-height: min(680px, 92vh);
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(15,23,42,0.35);
  animation: authModalIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Left: layered image panel ── */
.auth-modal-visual {
  position: relative; flex: 0 0 38%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
}
.auth-modal-visual-layer {
  position: absolute; inset: 32px;
  border-radius: 22px;
}
.auth-modal-visual-layer-1 { background: #1ABF6A; transform: rotate(7deg) translate(12px, 14px); opacity: 0.85; }
.auth-modal-visual-layer-2 { background: #FF6B35; transform: rotate(-5deg) translate(-8px, 6px); opacity: 0.9; }
.auth-modal-visual-imgwrap {
  position: relative; z-index: 2; width: 100%;
  background: #fff; padding: 6px; border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.18);
}
.auth-modal-visual-imgwrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 15px; display: block;
}

/* ── Right: form panel ── */
.auth-modal-form-col {
  position: relative; flex: 1; min-width: 0;
  padding: 36px 36px 28px; overflow-y: auto;
}

.auth-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--paper); color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; transition: background 0.16s, color 0.16s;
}
.auth-modal-close:hover { background: var(--blue-lt); color: var(--blue); }

.auth-modal-title {
  font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em; margin-bottom: 6px;
}
.auth-modal-sub { font-size: 13.5px; color: var(--mid); font-weight: 300; line-height: 1.6; margin-bottom: 20px; }

.auth-mode-toggle { font-size: 13px; color: var(--mid); margin-top: 16px; text-align: center; }
.auth-mode-toggle button {
  background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--teal); font-weight: 600; font-size: 13px; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.auth-field input {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px;
  padding: 11px 13px; border: 1px solid var(--faint); border-radius: 10px;
  background: #fff; color: var(--ink); outline: none; transition: border-color 0.18s;
}
.auth-field input:focus { border-color: var(--teal); }
.auth-field input[type="file"] {
  padding: 9px 12px; border: 1px dashed var(--faint); background: var(--paper);
  font-size: 12.5px; cursor: pointer;
}
.auth-field input[type="file"]::file-selector-button {
  padding: 7px 12px; margin-right: 10px; border: none; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 11.5px; cursor: pointer;
}
.auth-hint { font-size: 11.5px; color: var(--mid); margin-top: -2px; }

.auth-otp-input {
  font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800;
  letter-spacing: 10px; text-align: center; padding: 14px 10px !important;
}

.auth-submit {
  width: 100%; margin-top: 4px; padding: 13px 24px;
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: opacity 0.18s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { opacity: 0.6; cursor: default; }

.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-bottom: 14px;
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--mid); cursor: pointer;
}
.auth-back:hover { color: var(--teal); }

.auth-error {
  display: none; font-size: 13px; color: #B91C1C;
  background: rgba(185,28,28,0.08); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 14px;
}
.auth-error.show { display: block; }
.auth-info {
  display: none; font-size: 13px; color: var(--blue);
  background: var(--blue-lt); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 14px;
}
.auth-info.show { display: block; }

.auth-step { display: none; }
.auth-step.active { display: block; }

@media (max-width: 760px) {
  .auth-modal-visual { display: none; }
  .auth-modal-box { max-height: 92vh; }
}
@media (max-width: 480px) {
  .auth-modal { padding: 16px; }
  .auth-modal-form-col { padding: 30px 22px 22px; }
}
