/* Prijava u administraciju (wp-login.php) u izgledu prodavnice — inc/login.php dodaje logo, naslov i sliku.
   Pokriva sve ekrane: prijava, zaboravljena lozinka, nova lozinka, „proverite poštu“, potvrda zahteva i mali
   prozor koji se otvori kad istekne prijava. Učitava se posle WordPress-ovog login.css i prepisuje ga. */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight-normal-sr.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-normal-sr.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --card: #fbf8f2;
  --ink: #17160f;
  --ink-2: #57534a;
  --ink-3: #68655c;
  --line: rgba(23, 22, 15, .12);
  --green: #1d4a2c;
  --green-2: #2b6a3d;
  --leaf: #8cc63f;
  --rasp: #c8193f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- the page: picture on the left, form on the right ---------- */
body.login {
  min-height: 100vh; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); grid-template-rows: 1fr auto;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
}
.vb-side {
  grid-column: 1; grid-row: 1 / -1; position: relative; margin: 0; overflow: hidden;
  background: var(--green);
}
.vb-side__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vb-side__line {
  position: absolute; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 52px);
  margin: 0; max-width: 13ch;
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 58px); line-height: 1.02; color: #fff;
  text-shadow: 0 2px 30px rgba(23, 22, 15, .5);
}
.vb-side__line em { color: var(--leaf); }
.vb-side::after { /* keeps the line readable over any photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 22, 15, 0) 40%, rgba(23, 22, 15, .62));
}
.vb-side__line { z-index: 1; }

.login #login {
  grid-column: 2; grid-row: 1; align-self: center;
  width: min(100%, 468px); padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 40px); margin: 0 auto;
}
.login .language-switcher { grid-column: 2; grid-row: 2; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) clamp(20px, 3vw, 32px); }

/* ---------- logo and heading ---------- */
.login h1.wp-login-logo { margin: 0; }
.login h1.wp-login-logo a {
  width: 178px; height: 55px; margin: 0 0 clamp(16px, 2.4vw, 26px);
  background-image: url(../img/vasa-basta-logo.svg); background-size: contain; background-position: left center;
}
.vb-login__head { margin: 0 0 20px; }
.vb-login__title {
  margin: 0; padding: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(38px, 4vw, 52px); line-height: 1; color: var(--ink);
}
.vb-login__sub { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- the form as a card ---------- */
.login form {
  margin: 0; padding: clamp(22px, 3vw, 30px);
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 50px -38px rgba(23, 22, 15, .55);
  font-size: 15px; font-weight: 400; overflow: visible;
}
#login form p, .login form p { margin: 0 0 18px; }
#login form p:last-of-type, .login form p:last-of-type { margin-bottom: 0; }
.login label, .login .user-pass-wrap label, .login .user-pass1-wrap label, .login .user-pass2-wrap label {
  display: block; margin: 0 0 7px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3;
}

/* fields */
.login input[type="text"], .login input[type="password"], .login input[type="email"], .login form .input {
  width: 100%; height: 50px; margin: 0; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: 500 16px/1 var(--sans); box-shadow: none; outline: none; transition: border-color .2s, box-shadow .2s;
}
.login input[type="text"]:focus, .login input[type="password"]:focus, .login input[type="email"]:focus, .login form .input:focus {
  border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(43, 106, 61, .14);
}
.login input::placeholder { color: var(--ink-3); }
/* the new-password field: WordPress colours it with an id selector, so this one needs the id too */
.login #pass1:focus, .login #pass1-text:focus, .login #pass2:focus {
  border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(43, 106, 61, .14);
}
/* keyboard focus on links and on the little help button, in the shop's green */
.login a:focus, .login a:focus-visible { color: var(--green-2); box-shadow: none; outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }
.login .wp-tooltip button.wp-tooltip__toggle:focus, .login .wp-tooltip button.wp-tooltip__toggle:focus-visible {
  background: var(--green); color: #fff; box-shadow: none; outline: 2px solid var(--green-2); outline-offset: 2px;
}
.login .wp-pwd { position: relative; }
.login .wp-pwd input[type="password"], .login .wp-pwd input[type="text"] { padding-right: 52px; }

/* the eye that shows the password */
.login .wp-pwd button.wp-hide-pw {
  position: absolute; right: 5px; top: 5px; display: grid; place-items: center;
  width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 11px;
  background: transparent; color: var(--ink-3); box-shadow: none; cursor: pointer; transition: background .2s, color .2s;
}
.login .wp-pwd button.wp-hide-pw:hover, .login .wp-pwd button.wp-hide-pw:focus { background: var(--paper-2); color: var(--green-2); outline: none; }
.login .wp-pwd button.wp-hide-pw .dashicons { width: 20px; height: 20px; font-size: 20px; }

/* "Zapamti me" and the small help bubble beside it */
#login form .forgetmenot, .login form .forgetmenot {
  float: none; display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2);
}
.login form .forgetmenot input[type="checkbox"] {
  width: 19px; height: 19px; min-width: 19px; margin: 0; border-radius: 6px; border: 1px solid var(--line);
  accent-color: var(--green); box-shadow: none;
}
.login form .forgetmenot input[type="checkbox"]:checked::before { content: none; }
.login form .forgetmenot label { display: inline; margin: 0; font-weight: 500; color: var(--ink-2); }
.login .wp-tooltip__toggle {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-2); cursor: pointer;
}
.login .wp-tooltip__toggle:hover { background: var(--green); color: #fff; }
/* the icon inside keeps WordPress's blue through a stronger selector, so it is set on the icon itself */
.login .wp-tooltip__toggle:hover .dashicons, .login .wp-tooltip__toggle:focus .dashicons { color: #fff; }
.login .wp-tooltip__bubble {
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink);
  box-shadow: 0 22px 44px -28px rgba(23, 22, 15, .6);
}
.login .wp-tooltip__text { font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); }
.login .wp-tooltip__close {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.login .wp-tooltip__close:hover, .login .wp-tooltip__close:focus { background: var(--paper-2); color: var(--ink); box-shadow: none; outline: none; }

/* buttons */
#login form p.submit, .login .submit { float: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.login .button.button-primary, .login input.button-primary {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-height: 52px; padding: 0 26px; float: none;
  border: 0; border-radius: 999px; background: var(--green); color: #fff;
  font: 600 16px var(--sans); text-shadow: none; box-shadow: none; cursor: pointer; transition: background .2s;
}
.login .button.button-primary:hover, .login .button.button-primary:focus, .login input.button-primary:hover, .login input.button-primary:focus {
  background: var(--green-2); color: #fff; box-shadow: none; outline: none;
}
.login .button.button-primary:focus-visible, .login input.button-primary:focus-visible { box-shadow: 0 0 0 4px rgba(43, 106, 61, .25); }
.login .wp-generate-pw, .login .language-switcher input.button, .login .button.button-secondary:not(.wp-hide-pw):not(.wp-tooltip__toggle) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  font: 600 15px var(--sans); box-shadow: none; cursor: pointer; transition: background .2s, border-color .2s;
}
.login .wp-generate-pw:hover, .login .language-switcher input.button:hover, .login .button.button-secondary:not(.wp-hide-pw):hover {
  background: var(--paper-2); border-color: var(--line); color: var(--ink);
}

/* ---------- new password: strength, weak-password confirm, hint ---------- */
.login #pass-strength-result {
  margin: 10px 0 0; padding: 9px 14px; border: 0; border-radius: 12px;
  background: var(--paper-2); color: var(--ink-2); font: 600 13px var(--sans); text-align: left;
}
.login #pass-strength-result.short { background: #f8dde3; color: var(--rasp); }
.login #pass-strength-result.bad { background: #fbefd2; color: #7a5200; }
.login #pass-strength-result.good { background: #eaf2e2; color: var(--green-2); }
.login #pass-strength-result.strong { background: #e3efdc; color: var(--green); }
.login .pw-weak { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.login .pw-weak input[type="checkbox"] { width: 19px; height: 19px; margin: 0; accent-color: var(--rasp); }
.login .pw-weak label { display: inline; margin: 0; font-weight: 500; color: var(--ink-2); }
.login .description.indicator-hint, .login .description {
  margin: 12px 0 0; padding: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3);
}
.login .user-pass2-wrap { margin-top: 16px; }

/* ---------- messages: the same boxes as on the site ---------- */
.login .notice, .login #login_error, .login .message, .login .success {
  position: relative; margin: 0 0 18px; padding: 15px 18px 15px 48px;
  border: 1px solid var(--line); border-left-width: 1px; border-radius: 18px;
  background: var(--card); color: var(--ink); font-size: 14.5px; line-height: 1.5; box-shadow: none;
}
.login .notice p, .login #login_error p, .login .message p { margin: 0; padding: 0; }
.login .notice p + p, .login #login_error p + p { margin-top: 8px; }
.login .notice::before, .login #login_error::before, .login .message::before {
  content: "i"; position: absolute; left: 15px; top: 15px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: #e3efdc; color: var(--green-2); font: 700 13px/1 var(--sans);
}
.login #login_error, .login .notice-error { background: #fdf1f3; border-color: #f1c3cc; }
.login #login_error::before, .login .notice-error::before { content: "!"; background: #f8dde3; color: var(--rasp); }
.login .notice-success::before, .login .success::before { content: "✓"; }
.login .notice a, .login #login_error a, .login .message a { color: var(--green-2); font-weight: 600; }
.login .notice a:hover, .login #login_error a:hover { color: var(--green); }

/* ---------- links under the form ---------- */
.login #nav, .login #backtoblog { display: inline-block; margin: 18px 0 0; padding: 0; font-size: 14.5px; text-align: left; }
.login #nav ~ #backtoblog { margin-left: 10px; } /* ~ and not +: WordPress puts a script between the two */
.login #nav ~ #backtoblog::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.login #nav a, .login #backtoblog a, .login .privacy-policy-link {
  color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.login #nav a:hover, .login #backtoblog a:hover, .login .privacy-policy-link:hover { color: var(--green-2); border-bottom-color: currentColor; }
.login .privacy-policy-page-link { margin: 18px 0 0; text-align: left; }
.login .privacy-policy-page-link .privacy-policy-link { font-size: 13.5px; color: var(--ink-3); }

/* ---------- language switcher ---------- */
.login .language-switcher { text-align: left; }
.login .language-switcher form {
  padding: 0; margin: 0; border: 0; background: none; box-shadow: none;
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px;
}
.login .language-switcher input.button, .login .language-switcher select, .login .language-switcher label { margin: 0; }
.login .language-switcher label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.login .language-switcher select {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font: 500 14.5px var(--sans); box-shadow: none;
}
.login .language-switcher input.button { min-height: 44px; font-size: 14.5px; }

/* ---------- the small window inside the admin when a session runs out ---------- */
body.login.interim-login { display: block; min-height: 0; background: var(--card); }
.interim-login #login { width: auto; max-width: none; padding: 12px 16px 16px; margin: 0; }
.interim-login h1.wp-login-logo a { width: 132px; height: 42px; margin: 0 auto 14px; background-position: center; }
.interim-login form { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.interim-login .vb-side, .interim-login .language-switcher, .interim-login #backtoblog, .interim-login .privacy-policy-page-link { display: none; }

/* ---------- phones and tablets: the picture steps aside ---------- */
@media (max-width: 900px) {
  body.login { grid-template-columns: minmax(0, 1fr); }
  .vb-side { display: none; }
  .login #login, .login .language-switcher { grid-column: 1; }
  .login #login { padding-top: clamp(32px, 8vw, 64px); }
}
@media (max-width: 480px) {
  .login form { padding: 20px 18px; border-radius: 22px; }
  .vb-login__title { font-size: 34px; }
  .login .submit { flex-direction: column; }
  .login .wp-generate-pw, .login .button.button-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .login * { transition: none !important; }
}
