/* ===== Auth layout (login + register) ===== */

:root {
	--auth-radius: 0.75rem;
	--auth-gap: 2rem;
	--auth-card-pad: 2rem;
	--auth-shadow: 0 10px 30px rgba(0,0,0,.12);
	--auth-border: 1px solid rgba(0,0,0,.08);
	--auth-blue: #1569a8;         /* primary */
	--auth-blue-d: #115a90;       /* hover */
	--auth-text: #111;
	--auth-muted: #5b6770;
	--auth-input-bd: #d9dee3;
	--auth-input-bd-f: #3a8ad3;
}

/* wrapper – centrowanie bloku na stronie */
.auth-wrapper {
	min-height: 70vh;
	display: grid;
	place-items: start center;
	padding: 4rem 1rem;
	box-sizing: border-box;
}

/* kontener dwóch kart; brak media – działa dzięki flex-wrap */
.auth-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--auth-gap);
	max-width: 80rem;
	width: 100%;
}

/* pojedyncza karta */
.auth-card {
	flex: 1 1 42rem;          /* min ~26rem, rośnie do dostępnej szerokości */
	max-width: 41rem;         /* żeby nie rozjeżdżało się na ultrapanoramach */
	background: #fff;
	color: var(--auth-text);
	border: var(--auth-border);
	border-radius: var(--auth-radius);
	box-shadow: var(--auth-shadow);
	padding: var(--auth-card-pad);
	box-sizing: border-box;
}

/* nagłówek karty */
.auth-card h2 {
	margin: 0 0 0.75rem;
	font-weight: 600;
	font-size: 1.5rem;
}

/* tekst pomocniczy */
.auth-muted {
	color: var(--auth-muted);
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

/* formularz */
.auth-form {
	display: grid;
	gap: 0.9rem;
}

.auth-label {
	font-size: 0.85rem;
	color: var(--auth-muted);
	margin-bottom: 0.25rem;
}

.auth-input {
	width: 100%;
	padding: 0.9rem 0.95rem;
	border: 1px solid var(--auth-input-bd);
	border-radius: 0.5rem;
	background: #fff;
	color: var(--auth-text);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}

.auth-input:focus {
	border-color: var(--auth-input-bd-f);
	box-shadow: 0 0 0 3px rgba(58,138,211,.15);
}

.auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

/* linki */
.auth-link {
	color: var(--auth-blue);
	text-decoration: none;
	font-size: 0.95rem;
}
.auth-link:hover { text-decoration: underline; }

/* przyciski */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.2rem;
	border-radius: 0.5rem;
	border: 1px solid transparent;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.btn:active { transform: translateY(0); }

/* primary (niebieski) */
.btn-primary {
	background: var(--auth-blue);
	color: #fff;
	box-shadow: 0 8px 18px rgba(21,105,168,.25);
}
.btn-primary:hover {
	background: var(--auth-blue-d);
	box-shadow: 0 10px 24px rgba(17,90,144,.28);
}

/* outline biały z niebieskim obrysem */
.btn-outline {
	background: #fff;
	color: var(--auth-blue);
	border-color: rgba(21,105,168,.45);
}
.btn-outline:hover {
	border-color: var(--auth-blue);
	box-shadow: 0 6px 14px rgba(21,105,168,.15);
}

/* drobne utility */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.center { text-align: center; }

/* opcjonalne logo w karcie (jeśli użyjesz) */
.auth-brand {
	display: block;
	margin: 0 auto 1rem;
	max-height: 40px;
}


/* lista benefitów w rejestracji */
.auth-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem; /* proste punktorowanie */
  color: var(--auth-text);
}
.auth-list li { margin: 0.35rem 0; }

.auth-muted.small { font-size: 0.85rem; }






/* ====== DODATKI: animacja sukcesu, spinner, shake, overlay ====== */

/* Stan ładowania na przycisku – kółko zamiast tekstu */
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1rem; height: 1rem;
  border: .15rem solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .8s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

/* Delikatny shake przy błędzie */
.shake { animation: login-shake .4s ease; }
@keyframes login-shake {
  10%,90%{ transform: translateX(-2px) }
  20%,80%{ transform: translateX(4px) }
  30%,50%,70%{ transform: translateX(-6px) }
  40%,60%{ transform: translateX(6px) }
}

/* Overlay sukcesu */
.login-success {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
.login-success.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.login-success-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .85rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  padding: 1.75rem 2rem;
  text-align: center;
  min-width: 16rem;
}

/* Ikona ptaszka */
.check { width: 72px; height: 72px; display: block; margin: 0 auto .75rem; }
.check circle { fill: #22c55e; }
.check path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: login-draw .5s .15s ease forwards;
}
@keyframes login-draw { to { stroke-dashoffset: 0; } }

.login-success-title { margin: .25rem 0 0; font-weight: 700; }
.login-success-muted { margin: .25rem 0 0; color: var(--auth-muted, #5b6770); font-size: .95rem; }

.auth-error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #7f1d1d;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.95rem;
}