/* Strona logowania — spójna z panelem Wyjedzone */

html.wyj-login-root,
html.wyj-login-root body {
  height: 100%;
  min-height: 100dvh;
  margin: 0;
}

.wyj-login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1.25rem, var(--wyj-safe-top-effective, 0px)) max(1.25rem, var(--wyj-safe-right-effective, 0px)) max(1.25rem, var(--wyj-safe-bottom-effective, 0px)) max(1.25rem, var(--wyj-safe-left-effective, 0px));
  background: var(--wyj-bg);
  color: var(--wyj-ink);
  font-family: var(--wyj-font-ui, 'Inter', system-ui, sans-serif);
  -webkit-tap-highlight-color: transparent;
}

.wyj-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--wyj-surface);
  border: 1px solid var(--wyj-border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--wyj-shadow);
}

.wyj-login-card__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wyj-pink);
  margin-bottom: 0.35rem;
  text-align: center;
}

.wyj-login-card__title {
  font-family: var(--wyj-font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--wyj-purple);
  text-align: center;
  margin: 0 0 0.35rem;
}

.wyj-login-card__desc {
  font-size: 0.8125rem;
  color: var(--wyj-ink50);
  text-align: center;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.wyj-login-alert {
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.wyj-login-alert--error {
  background: var(--wyj-redSoft);
  border-color: rgba(178, 58, 58, 0.25);
  color: var(--wyj-red);
}
html[data-wyj-theme="dark"] .wyj-login-alert--error,
html:not([data-wyj-theme]) .wyj-login-alert--error {
  color: var(--wyj-red);
}
.wyj-login-alert--warn {
  background: var(--wyj-amberSoft);
  border-color: rgba(181, 117, 27, 0.2);
  color: var(--wyj-amber);
}
html[data-wyj-theme="dark"] .wyj-login-alert--warn,
html:not([data-wyj-theme]) .wyj-login-alert--warn {
  color: var(--wyj-amber);
}

.wyj-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wyj-login-field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wyj-ink50);
  margin-bottom: 0.35rem;
}

.wyj-login-input-wrap {
  position: relative;
}

.wyj-login-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--wyj-surfaceMuted);
  border: 1px solid var(--wyj-border);
  border-radius: 9999px;
  color: var(--wyj-ink);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wyj-login-input--password {
  padding-right: 4.5rem;
}
.wyj-login-input::placeholder {
  color: var(--wyj-ink30);
}
.wyj-login-input:focus {
  border-color: var(--wyj-pink);
  box-shadow: 0 0 0 2px var(--wyj-pinkSoft);
}

.wyj-login-toggle-pw {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--wyj-ink50);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
}
.wyj-login-toggle-pw:hover {
  color: var(--wyj-ink);
  background: var(--wyj-surfaceSunken);
}

.wyj-login-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: var(--wyj-lavender);
  color: var(--wyj-bg);
  transition: opacity 0.15s, transform 0.1s;
}
html[data-wyj-theme="light"] .wyj-login-submit {
  background: var(--wyj-ink);
  color: #fff;
}
.wyj-login-submit:hover {
  opacity: 0.92;
}
.wyj-login-submit:active {
  transform: scale(0.99);
}
