/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px; /* base coerente Bootleg25 */
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Segoe UI", Roboto, sans-serif;
  color: #e9eef5;

  background:
    radial-gradient(circle at top left, #243b5a 0%, #05070b 45%),
    radial-gradient(circle at bottom right, #2d1f4a 0%, #05070b 55%),
    #05070b;
  position: relative;
}

/* CANVAS SFONDO */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
}

/* Velo glass */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(60,120,255,0.14), rgba(5,7,11,0.70)),
    radial-gradient(circle at 80% 90%, rgba(150,60,255,0.12), rgba(5,7,11,0.90));
}

/* LOGIN BOX */
.login-box {
  background: rgba(14,16,24,0.74);
  padding: 34px 40px 32px;
  width: 360px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  box-shadow: 0 18px 45px rgba(0,0,0,0.85);
  position: relative;
  animation: fadeIn .7s ease;
  transform: scale(1.15);
  transform-origin: center;
  overflow: hidden;
}



/* CREST “B25” (medaglione dorato) */
.b25-crest{
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.10em;

  color: #1a1407;
  background: radial-gradient(circle at 30% 30%, #fff2cf 0%, #d8c59a 45%, #b1996c 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),
    0 10px 18px rgba(0,0,0,0.55),
    0 0 20px rgba(216,197,154,0.20);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* LOGO PRINCIPALE – LOGIN (fit box, no overflow) */
.logo-text, .b25-logo-text{
  font-family: "Cinzel", serif;
  font-size: clamp(24px, 3.0vw, 36px);
  font-weight: 800;
  letter-spacing: clamp(1px, 0.25vw, 2px);
  color: #d8c59a;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 6px 0 10px;
  padding: 0;
  width: 100%;
  display: block;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 10px rgba(216,197,154,0.18),
    0 2px 10px rgba(0,0,0,0.85);
}
/* “Genuine” stile rock/blues */
.logo-genuine {
  margin-top: 4px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(240,225,210,0.88);
  font-style: italic;
  transform: skewX(-8deg);
  text-shadow:
    0 0 10px rgba(0,0,0,0.7),
    0 0 14px rgba(255,210,140,0.45);
}

/* SOTTOTITOLO BAND */
.logo-sub {
  margin-top: 2px;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(210,225,255,0.90);
  text-shadow: 0 0 14px rgba(40,80,160,0.85);
}

/* INPUT — GLASS TRASPARENTE REALE */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;

  /* vera trasparenza */
  background: rgba(8, 12, 24, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #e9eef5;
  font-size: 15px;

  /* effetto vetro */
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);

  /* maggiore trasparenza visiva */
  /* niente ombra interna */
  box-shadow: none;

  transition: all 0.25s ease;
}

/* Focus più luminoso ma ancora trasparente */
input[type="text"]:focus,
input[type="password"]:focus {
  background: rgba(20, 28, 45, 0.30);
  border-color: rgba(78,160,255,0.70);
  box-shadow: 0 0 14px rgba(78,160,255,0.35);
  outline: none;
}

/* FIX autofill Chrome/Edge: rende l’autofill trasparente */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e9eef5 !important;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px rgba(8, 12, 24, 0.18) inset !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

input:-webkit-autofill::first-line {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
}


/* PASSWORD + OCCHIO (no velo + icona allineata) */
.pw-wrap{ position: relative; margin: 8px 0; }
.pw-wrap input{ margin: 0; padding-right: 56px; }

.pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;

  background: transparent;
  border: 0;
  padding: 0;

  color: #cfd8ff;
  opacity: 0.80;
  cursor: pointer;
  transition: .2s;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  box-shadow: none;
  outline: none;
}
.pw-toggle:hover{ opacity: 1; }
/* BUTTON (solo bottone Accedi) */
#loginBtn{
  width: 100%;
  padding: 12px;
  margin-top: 14px;

  font-weight: 600;
  color: #e9eef5;

  background: rgba(40, 80, 200, 0.35);
  border: 1px solid rgba(120,160,255,0.35);
  border-radius: 8px;

  backdrop-filter: blur(8px) saturate(1.4);
  cursor: pointer;
  transition: .25s ease;
}
#loginBtn:hover{
  background: rgba(70, 120, 255, 0.50);
  border-color: rgba(150,180,255,0.55);
  transform: translateY(-2px);
}

/* MESSAGGI */
#capsAlert, #errorMsg {
  font-size: 14px;
  margin-top: 10px;
  display: none;
}
#capsAlert { color: #ff8080; }
#errorMsg { color: #ff8080; }

.status-bar {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
}
