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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}

/* ── Bird — anchored bottom-right, slightly cropped ── */
.login-hero {
  position: fixed;
  bottom: -90px;
  right: -50px;
  height: 108vh;
  width: auto;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Card — floats on top like a sticker ── */
.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-box {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.1);
  padding: 40px 36px 36px;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  color: #111;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #444;
  font-size: 0.8rem;
  font-weight: 500;
}

input {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
  color: #111;
  font-size: 0.9rem;
  outline: none;
  padding: 10px 13px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.login-error {
  color: #b03030;
  font-size: 0.8rem;
  min-height: 1em;
  text-align: center;
}

button[type="submit"] {
  background: #1a1a1a;
  border: none;
  border-radius: 9px;
  color: #f0f0f0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 4px;
  padding: 11px;
  transition: background 0.15s;
  width: 100%;
}
button[type="submit"]:hover:not(:disabled) { background: #2e2e2e; }
button[type="submit"]:disabled { opacity: 0.45; cursor: default; }

/* ── TOTP ── */
.totp-back {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(30,20,10,0.35);
  text-decoration: none;
}
.totp-back:hover { color: rgba(30,20,10,0.65); }
