/* Přihlášení do administrace — navazuje na tokeny webu (website/css/main.css, .public-site). */
body.auth-page { background: #fff; min-height: 100vh; }

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  min-height: 100vh;
  min-height: 100svh;
}

/* —— Levý panel značky —— */
.auth__brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(255, 248, 238, 1) 0%, rgba(255, 248, 238, 0) 70%),
    linear-gradient(110deg, #ffffff 0%, #FBF7F2 30%, #F4EBE0 70%, #EEE2D4 100%);
  border-right: 1px solid var(--line);
}
.auth__brand .hero__code {
  width: 100%;
  opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, rgba(0,0,0,.5) 60%, #000 90%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, rgba(0,0,0,.5) 60%, #000 90%);
}
.auth__brand-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  height: 100%;
  padding: clamp(32px, 5vh, 56px) clamp(32px, 5vw, 88px);
}
.auth__logo img { height: 38px; width: auto; }
.auth__pitch { margin-top: auto; max-width: 560px; }
.auth__headline {
  margin: 0;
  font: 700 clamp(30px, 3vw, 46px)/1.12 var(--f-display);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.auth__headline span { color: var(--gold); }
.auth__term { max-width: 560px; }
.auth__term .term { margin-left: 0; max-width: none; }
.auth__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 auto; padding: 0;
}
.auth__chips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  font: 600 12.5px/1 var(--f-sans);
  color: var(--ink-2);
}
.auth__chips i { color: var(--gold-ink); font-size: 14px; }

/* —— Pravý panel s formulářem —— */
.auth__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 72px);
  background: #fff;
}
.auth__top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.auth__logo--mobile { display: none; }
.auth__back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 13.5px/1 var(--f-sans);
  color: var(--ink);
  transition: border-color .2s;
}
.auth__back svg { width: 15px; height: 15px; transition: transform .2s var(--ease-v2); }
.auth__back:hover { border-color: var(--ink); color: var(--ink); }
.auth__back:hover svg { transform: translateX(-3px); }

.auth__card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding-block: 40px;
  animation: v2-rise .8s var(--ease-v2) both;
}
.auth__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font: 700 11.5px/1 var(--f-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth__title {
  margin: 22px 0 10px;
  font: 600 clamp(30px, 3vw, 40px)/1.1 var(--f-display);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.auth__lede { margin: 0 0 32px; color: var(--muted); font-size: 15.5px; }

.auth__alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #F3C7BF;
  border-radius: 12px;
  background: #FDF1EE;
  color: #A2361F;
  font-size: 14px; line-height: 1.45;
  animation: auth-shake .4s ease both;
}
.auth__alert i { font-size: 16px; margin-top: 1px; }

.auth__form { display: grid; gap: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font: 600 14px/1.2 var(--f-sans);
  color: var(--ink);
}
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__link { font: 600 13px/1.2 var(--f-sans); color: var(--gold-ink); }
.field__link:hover { color: var(--ink); }
.field__control { position: relative; }
.field__icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color .2s;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 46px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #FCFBFA;
  font: 500 15.5px/1 var(--f-sans);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #b3ada6; font-weight: 400; }
.field input:hover { border-color: #d9d3cc; }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(196, 160, 122, .18);
}
.field__control:focus-within .field__icon { color: var(--gold-ink); }
.field.has-error input { border-color: #E3907F; background: #FFFBFA; }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(227, 144, 127, .2); }
.field__toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  font-size: 17px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.field__toggle:hover { background: var(--gold-soft); color: var(--ink); }
.field__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.field__error { margin: 8px 0 0; font-size: 13px; color: #A2361F; }
.field__hint[hidden] { display: none; }
.field__hint {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 0 0; font-size: 13px; color: var(--gold-ink);
}

.auth__submit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 14px/1 var(--f-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-v2), box-shadow .2s;
  box-shadow: 0 14px 30px -16px rgba(17, 17, 17, .6);
}
.auth__submit svg { width: 17px; height: 17px; }
.auth__submit:hover { background: #2a2a2a; transform: translateY(-1px); }
.auth__submit:hover .auth__submit-arrow { transform: translateX(3px); }
.auth__submit:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.auth__submit-arrow { transition: transform .2s var(--ease-v2); }
.auth__submit-spin { display: none; animation: t-rot .8s linear infinite; }
.auth__submit.is-loading { pointer-events: none; background: #3a3a3a; }
.auth__submit.is-loading .auth__submit-arrow { display: none; }
.auth__submit.is-loading .auth__submit-spin { display: block; }

.auth__help { margin: 26px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth__help a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.auth__foot { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted-2); }

@keyframes auth-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@media (max-width: 1100px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); }
  .auth__chips { display: none; }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__panel {
    min-height: 100svh;
    background:
      radial-gradient(90% 40% at 100% 0%, rgba(244, 235, 225, .9), rgba(255,255,255,0) 70%),
      #fff;
  }
  .auth__top { justify-content: space-between; }
  .auth__logo--mobile { display: block; }
  .auth__logo--mobile img { height: 32px; }
  .auth__card { padding-block: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth__card, .auth__alert { animation: none; }
}
