/* ===================================
   AUTH.CSS – MaszynyGO (FINAL PROD)
   LOGIN / REGISTER / RESET / FORGOT
   KANON: MOBILE FIRST
=================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   BODY — AUTH ONLY (MOBILE)
========================= */
body.auth-body {
  margin: 0;
  font-family: system-ui, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  color: #ffffff;

  display: flex;
  flex-direction: column;
}

.auth-section-label {
	text-align:center;
	margin: 15px 0 5px;
    text-align: center;
    font-size: .75rem;
	}

	.auth-section-icon {
		
	}
	
/* =========================
   WRAPPER — MOBILE
========================= */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex: 1;
}

/* =========================
   BOX — MOBILE (BAZA)
========================= */
.auth-box {
  background: rgba(20,22,30,.95);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 34px 28px 100px;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0,0,0,.45);
}

/* =========================
   HEADINGS
========================= */
.auth-box h2 {
  text-align: center;
  margin: 0 0 6px;
}

.auth-box h3 {
  text-align: center;
  margin: 0 0 14px;
  padding: 0;
  font-weight: 600;
}

.auth-sub {
  text-align: center;
  color: #a0a3b5;
  font-size: .9rem;
  margin-bottom: 20px;
}

/* =========================
   INPUTS — MOBILE
========================= */
.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="number"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: none;
  background: #2a2d3a;
  color: #ffffff;
  font-size: 1.2rem;
}

/* =========================
   BUTTON — MOBILE
========================= */
.auth-box button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: .12s;
  margin-top: 14px;
}

.auth-box button:hover {
  background: #ffad1f;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255,153,0,.45);
}

/* =========================
   MESSAGES
========================= */
.auth-msg {
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 14px;
  font-size: .9rem;
  text-align: center;
}

.auth-msg.success { background: #1f3b29; color: #baf7c3; }
.auth-msg.error   { background: #402020; color: #ffbfbf; }
.auth-msg.info    { background: #263143; color: #d0e0ff; }

/* =========================
   FOOTER / LINKS
========================= */
.auth-footer {
  text-align: center;
  font-size: .85rem;
  margin-top: 14px;
}

.auth-footer a,
.auth-box a {
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover,
.auth-box a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =============================
   CHECKBOXY — MOBILE (FINAL)
============================= */
.auth-box form label.auth-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.auth-box label.auth-check a {
  white-space: nowrap;
}

.auth-check-text {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  flex: 1;
}

/* CHECKBOX — DOTYKOWY */
.auth-box label.auth-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 22px;
  height: 22px;

  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: transparent;

  flex-shrink: 0;
  cursor: pointer;
  position: relative;

  transition: background .12s ease, border-color .12s ease;
}

.auth-box label.auth-check input[type="checkbox"]:checked {
  background: #f59e0b;
  border-color: #f59e0b;
}

.auth-box label.auth-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  left: 7px;
  top: 3px;
}

.auth-box label.auth-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* =========================
   REGISTER CTA
========================= */
.auth-register {
  margin-top: 18px;
  text-align: center;
  font-size: .95rem;
  line-height: 1.6;
}

.auth-register .auth-sep {
  color: #cfd3ff;
  font-weight: 500;
}

.auth-register a {
  color: #ffcc70;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-register a:hover {
  color: #ffffff;
}

/* ==============================
   OAUTH — MOBILE
============================== */
.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 18px;
  border-radius: 999px;

  background: #ffffff;
  border: 1px solid #e5e7eb;

  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 15px;

  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.oauth-btn:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.oauth-btn:active {
  transform: scale(0.98);
}

.oauth-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

.oauth-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.oauth-text {
  flex: 1;
  text-align: left;
  color: #111;
}

.oauth-icon-allegro {

}

.oauth-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ==============================
   SEPARATORS
============================== */
.auth-separator {
  position: relative;
  margin: 18px 0;
  text-align: center;
}

.auth-separator span {
  background: #25325f;
  padding: 0 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.auth-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%);
}

/* ==============================
   TABLET (768–1023px)
============================== */
@media (min-width: 768px) and (max-width: 1023px) {

  .auth-box {
    max-width: 520px;
    padding: 42px 36px 120px;
  }

  .auth-box h2 {
    font-size: 1.6rem;
  }

  .auth-box input[type="email"],
  .auth-box input[type="password"],
  .auth-box input[type="number"] {
    padding: 14px;
    font-size: 1rem;
  }

  .auth-box button {
    padding: 14px;
    font-size: 1rem;
  }

  .oauth-btn {
    padding: 16px 20px;
    font-size: 16px;
  }

  .oauth-icon {
    width: 26px;
    height: 26px;
  }

  .oauth-icon svg {
    width: 24px;
    height: 24px;
  }

  .auth-section-label,
  .auth-separator span {
    font-size: 15px;
  }
}

/* ==============================
   DESKTOP (≥1024px)
   brak nadpisań — świadomie
============================== */
@media (min-width: 1024px) {}
