/* ==========================================================================
   auth.css - moderan UI za login / registraciju / reset lozinke (docs/12)
   Sve klase imaju vauth- prefiks da ne diraju globalne stilove.
   ========================================================================== */

:root {
  --vauth-pink: #F49AC1;
  --vauth-pink-dark: #e87fae;
  --vauth-ink: #3a3a3a;
  --vauth-muted: #8a8a8a;
  --vauth-line: #e9e2e6;
  --vauth-bg: #fdf8fa;
  --vauth-ok: #2e9e5b;
  --vauth-err: #d64545;
}

.vauth-wrap {
  max-width: 460px;
  margin: 28px auto 48px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--vauth-ink);
}
.vauth-wrap *,
.vauth-wrap *::before,
.vauth-wrap *::after {
  box-sizing: border-box;
}
.vauth-wrap--wide { max-width: 640px; }

.vauth-card {
  background: #fff;
  border: 1px solid var(--vauth-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(150, 90, 120, .08);
  padding: 30px 28px;
}
@media (max-width: 480px) { .vauth-card { padding: 22px 16px; } }

.vauth-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  text-align: center;
  letter-spacing: 0;
}
.vauth-sub {
  text-align: center;
  color: var(--vauth-muted);
  margin: 0 0 22px;
  font-size: 14px;
}

/* ---- polja ---- */
.vauth-field { margin-bottom: 16px; }
#reg_form .div_true,
#reg_form .div_city {
  visibility: visible;
}
.vauth-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.vauth-label .req { color: var(--vauth-pink-dark); }
.vauth-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--vauth-ink);
  background: #fff;
  border: 1.5px solid var(--vauth-line);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.vauth-input:focus {
  outline: none;
  border-color: var(--vauth-pink);
  box-shadow: 0 0 0 3px rgba(244, 154, 193, .25);
}
.vauth-input.is-invalid { border-color: var(--vauth-err); }
textarea.vauth-input { height: auto; min-height: 90px; resize: vertical; }
textarea.vauth-input--short-content { min-height: 210px; }
select.vauth-input { padding-right: 30px; }
/* Izabrane vrednosti u wizard dropdown-ima moraju biti čitljive;
   legacy style.css ih postavlja na sivu italic varijantu. */
#reg_form select.vauth-input,
#reg_form select.vauth-input option {
  color: var(--vauth-ink);
  font-style: normal;
}

.vauth-feedback {
  display: block;
  color: var(--vauth-err);
  font-size: 12.5px;
  margin-top: 5px;
  min-height: 0;
}
.vauth-hint { color: var(--vauth-muted); font-size: 12.5px; margin-top: 5px; display: block; }

/* ---- password toggle ---- */
.vauth-pass { position: relative; }
.vauth-pass .vauth-input { padding-right: 46px; }
.vauth-eye {
  position: absolute;
  top: 0; right: 0;
  height: 46px; width: 46px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--vauth-muted);
  font-size: 17px;
}
.vauth-eye:hover { color: var(--vauth-ink); }

/* ---- dugmad ---- */
.vauth-btn {
  display: block;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: #df76a8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(173, 72, 119, .28);
  transition: background .15s, box-shadow .15s, transform .05s;
}
.vauth-btn:hover { background: #c95d91; color: #fff; box-shadow: 0 3px 0 rgba(173, 72, 119, .34); }
.vauth-btn:focus-visible { outline: 3px solid rgba(44, 116, 214, .45); outline-offset: 2px; }
.vauth-btn:active { transform: scale(.99); }
.vauth-btn[disabled] { opacity: .6; cursor: default; }

.vauth-btn--ghost {
  background: #fff;
  color: var(--vauth-ink);
  border: 1.5px solid var(--vauth-line);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.vauth-btn--ghost:hover { background: var(--vauth-bg); color: var(--vauth-ink); }

/* ---- google dugme ---- */
.vauth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--vauth-line);
  border-radius: 6px;
  background: #fff;
  color: var(--vauth-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.vauth-google:hover { background: #f7f7f7; border-color: #d5cdd2; color: var(--vauth-ink); }
.vauth-google svg { flex: 0 0 20px; }
.vauth-google-inner { display: inline-flex; align-items: center; gap: 10px; }
.vauth-choice--button { display: grid; width: 100%; margin: 12px 0; padding: 16px; text-align: left; cursor: pointer; font: inherit; }
.vauth-choice--button .ico { grid-row: span 2; margin-right: 12px; font-size: 24px; }
.vauth-choice--button .t { font-weight: 700; }
.vauth-choice--button .d { color: var(--vauth-muted); font-size: 13px; }
.vauth-onboarding-terms { display: block; margin-top: 18px; font-size: 13px; text-align: center; }
.vauth-input[readonly] { background: #f5f3f4; color: var(--vauth-muted); cursor: not-allowed; }
.vauth-google-connected { margin: 18px 0; padding: 12px 16px; border: 1px solid #b9dfc5; border-radius: 6px; background: #f1fbf4; color: #287a3d; font-size: 14px; text-align: center; }
.vauth-google-account-note { margin: 12px 0 20px; padding: 12px 16px; border-radius: 6px; background: #f7f3f5; color: var(--vauth-muted); text-align: center; }

/* ---- separator ---- */
.vauth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--vauth-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.vauth-or::before, .vauth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vauth-line);
}

/* ---- pomocni linkovi ---- */
.vauth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}
.vauth-links a { color: var(--vauth-pink-dark); text-decoration: none; font-weight: 600; }
.vauth-links a:hover { text-decoration: underline; }
.vauth-links .sep { color: var(--vauth-line); margin: 0 8px; }

.vauth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vauth-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--vauth-ink); }
.vauth-check input { width: 17px; height: 17px; accent-color: var(--vauth-pink); }

/* ---- poruke ---- */
.vauth-alert {
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.vauth-alert--ok  { background: #eef9f2; border: 1px solid #bfe6cd; color: #1e6e3e; }
.vauth-alert--err { background: #fdf0f0; border: 1px solid #f0c6c6; color: #a33; }
.vauth-alert--info{ background: #f2f6fd; border: 1px solid #c9d9f0; color: #33568a; }

/* ---- izbor tipa naloga (chooser) ---- */
.vauth-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 4px;
}
@media (max-width: 560px) { .vauth-choose { grid-template-columns: 1fr; } }
.vauth-choice {
  display: block;
  border: 1.5px solid var(--vauth-line);
  border-radius: 8px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none !important;
  color: var(--vauth-ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.vauth-choice:hover {
  border-color: var(--vauth-pink);
  box-shadow: 0 8px 22px rgba(244, 154, 193, .18);
  transform: translateY(-2px);
  color: var(--vauth-ink);
}
.vauth-choice .ico { font-size: 34px; line-height: 1; margin-bottom: 10px; display: block; }
.vauth-choice .t { font-size: 17px; font-weight: 700; display: block; margin-bottom: 6px; }
.vauth-choice .d { font-size: 13px; color: var(--vauth-muted); display: block; line-height: 1.45; }

/* ---- radio kartice + opciona sekcija (reg-korisnika) ---- */
.vauth-choose--radio { margin-bottom: 4px; }
.vauth-choice--radio { position: relative; cursor: pointer; padding: 16px 14px; }
.vauth-choice--radio input { position: absolute; opacity: 0; pointer-events: none; }
.vauth-choice--radio.is-selected {
  border-color: var(--vauth-pink);
  box-shadow: 0 0 0 2px rgba(244, 154, 193, .25);
}
.vauth-details { margin: 4px 0 16px; border: 1px dashed var(--vauth-line); border-radius: 8px; padding: 0 14px; }
.vauth-details summary { cursor: pointer; padding: 12px 2px; font-size: 14px; font-weight: 600; color: var(--vauth-muted); }
.vauth-details[open] summary { border-bottom: 1px dashed var(--vauth-line); margin-bottom: 14px; }

/* ---- wizard koraci (registracija oglasivaca) ---- */
.vauth-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  counter-reset: vstep;
}
.vauth-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--vauth-muted);
  padding: 0 14px;
  position: relative;
}
.vauth-step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f0eaee;
  color: var(--vauth-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.vauth-step.active { color: var(--vauth-ink); font-weight: 600; }
.vauth-step.active .num { background: var(--vauth-pink); color: #fff; }
.vauth-step.done .num { background: var(--vauth-ok); color: #fff; }
@media (max-width: 560px) { .vauth-step .txt { display: none; } }

.vauth-pane { display: none; }
.vauth-pane.active { display: block; animation: vauthFade .18s ease; }
@keyframes vauthFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.vauth-nav { display: flex; gap: 12px; margin-top: 20px; }
.vauth-nav .vauth-btn { flex: 1; }

/* ---- honeypot: sakriveno od ljudi, vidljivo botima ---- */
.vauth-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---- grid pomocnici ---- */
.vauth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .vauth-grid2 { grid-template-columns: 1fr; } }

/* ---- jacina lozinke ---- */
.vauth-strength { height: 5px; border-radius: 3px; background: var(--vauth-line); margin-top: 7px; overflow: hidden; }
.vauth-strength span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.vauth-strength.s1 span { width: 33%; background: var(--vauth-err); }
.vauth-strength.s2 span { width: 66%; background: #e6a23c; }
.vauth-strength.s3 span { width: 100%; background: var(--vauth-ok); }
