/* ============================================================
   login.css  —  RunLab Login
   Da includere dopo main.css:
     <link rel="stylesheet" href="assets/css/login.css?v=20260304-1">
   ============================================================ */

/* ── Card contenitore ────────────────────────────────────── */
.login-card {
  max-width: 480px;
  margin: 0 auto;
}

.login-title {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.login-desc {
  font-size: 12px;
  margin: 0;
}

/* ── Form ────────────────────────────────────────────────── */
.login-form {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.login-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 700;
}

.login-input {
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: rgba(96,165,250,.5);
  box-shadow: 0 0 0 3px rgba(96,165,250,.10);
}

.login-input::placeholder {
  color: rgba(255,255,255,.25);
}

/* Password wrapper per toggle visibilità */
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap .login-input {
  padding-right: 40px;
}

.login-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.login-eye:hover { color: rgba(255,255,255,.7); }

/* ── Pulsante ────────────────────────────────────────────── */
.login-btn {
  margin-top: 4px;
  padding: 11px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity .18s, transform .12s;
}
.login-btn:hover:not(:disabled)  { opacity: .88; transform: translateY(-1px); }
.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled              { opacity: .5; cursor: not-allowed; }

/* ── Messaggio errore/stato ──────────────────────────────── */
.login-msg {
  min-height: 18px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
}
.login-msg.error { color: rgba(255,170,170,.95); }

/* ── Link supporto ───────────────────────────────────────── */
.login-support {
  font-size: 11px;
  text-align: center;
  margin: 0;
}
.login-support a              { color: rgba(255,255,255,.6); text-decoration: underline; }
.login-support a:hover        { color: #fff; }

/* ── Spinner redirect ────────────────────────────────────── */
.login-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.login-loading.visible { display: flex; }
.login-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: login-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

/* ── Footer helpers ──────────────────────────────────────── */
.footer-email {
  color: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 16px;
}
.footer-email:hover { color: rgba(255,255,255,.7); }
.donate-text-wrap   { margin-left: auto; }
