@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 10px;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("https://cdn.jsdelivr.net/gh/Kuczis-Media/public-page-assets/login-hero-bg.jpg"), #000;
  background-position: center;
  background-size: cover;
}

.wrapper {
  width: 400px;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

form {
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: #fff;
}

.input-field {
  position: relative;
  border-bottom: 2px solid rgba(255,255,255,0.65);
  margin: 14px 0;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  transition: 0.15s ease;
}

.input-field input {
  width: 100%;
  height: 42px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  font-size: 0.8rem;
  top: 10px;
  transform: translateY(-120%);
}

button {
  background: #fff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: 0.25s ease;
  margin-top: 8px;
}

button:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Zakładki */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  gap: 8px;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab-btn.active {
  background: #fff;
  color: #000;
}

/* Panele formularzy */
.form { display: none; }
.form.active { display: flex; flex-direction: column; }

/* Komunikaty */
.helper { margin-top: 12px; color: #eee; }
.flash {
  min-height: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: #fff;
}
.flash.warn { color: #ffe08a; }
.flash.error { color: #ffb1b1; }
.flash.success { color: #b5ffb5; }

/* Busy state */
button[data-busy="1"] { opacity: 0.7; pointer-events: none; }
