/* ── Page ── */
body.login-page {
  min-height: 100vh;
  background: #F0F2F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Card ── */
.login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.08);
  margin: 16px;
}

/* ── Haut vert ── */
.login-hero {
  background: #1D9E75;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.login-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 22px;
  background: #fff;
  border-radius: 16px 16px 0 0;
}
.login-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-logo img { width: 70px; height: 70px; object-fit: contain; }
.login-app  { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.login-org  { font-size: 11px; color: rgba(255,255,255,.8); letter-spacing: 1.8px; text-transform: uppercase; }

/* ── Formulaire ── */
.login-body { background: #fff; padding: 28px 32px 32px; }

.login-alert {
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.login-alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.login-alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: #9CA3AF; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 7px;
}
.form-control {
  width: 100%; height: 48px;
  padding: 0 44px 0 16px;
  border: 1.5px solid #E9ECEF; border-radius: 10px;
  font-size: 14px; color: #1A1A2E; background: #F8F9FA;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: #ADB5BD; }
.form-control:focus {
  border-color: #1D9E75; background: #fff;
  box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}
.pw-wrap { position: relative; }
.pw-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #ADB5BD; cursor: pointer; font-size: 18px;
  transition: color .2s; user-select: none;
}
.pw-eye:hover { color: #1D9E75; }

.login-btn {
  width: 100%; height: 50px;
  background: #1D9E75; color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  margin-top: 8px;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(29,158,117,.3);
}
.login-btn:hover   { background: #17886A; box-shadow: 0 5px 16px rgba(29,158,117,.35); }
.login-btn:active  { transform: scale(.98); }
.login-btn:disabled { opacity: .7; cursor: default; }

/* ── FAB ── */
.fab-container {
  position: fixed; right: 24px; bottom: 28px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  z-index: 999;
}
.fab-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height .35s ease, opacity .25s ease;
}
.fab-container.open .fab-actions { max-height: 500px; opacity: 1; pointer-events: all; }
.fab-item { display: flex; align-items: center; gap: 10px; }
.fab-label {
  background: #1A1A2E; color: #fff; font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); pointer-events: none;
}
.fab-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 5px 16px rgba(0,0,0,.25); }
.fab-blue   { background: #2563EB; }
.fab-green  { background: #16A34A; }
.fab-red    { background: #DC2626; }
.fab-purple { background: #7C3AED; }
.fab-dark   { background: #374151; }
.fab-main {
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: #1D9E75; color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(29,158,117,.4);
  transition: background .2s;
}
.fab-main:hover { background: #17886A; }
.fab-container.open .fab-main { background: #374151; }
.fab-icon { display: inline-block; transition: transform .3s; }
.fab-container.open .fab-icon { transform: rotate(45deg); }

/* ── Modal IP ── */
.ip-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9000;
  align-items: center; justify-content: center;
}
.ip-overlay.vis { display: flex; }
.ip-modal {
  background: #fff; border-radius: 16px; padding: 28px;
  max-width: 340px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.ip-modal h3 { font-size: 15px; font-weight: 700; color: #1A1A2E; margin-bottom: 6px; }
.ip-modal p  { font-size: 12px; color: #6B7280; margin-bottom: 16px; }
.ip-box {
  background: #1A1A2E; color: #1D9E75; font-family: monospace;
  font-size: 17px; font-weight: 700; padding: 14px 20px;
  border-radius: 10px; margin-bottom: 12px; letter-spacing: 1px;
}
.ip-note { font-size: 11px; color: #9CA3AF; margin-bottom: 16px; }
.ip-close {
  background: #1D9E75; color: #fff; border: none;
  border-radius: 8px; padding: 10px 28px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ── Toast ── */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #1A1A2E; color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 500; z-index: 9999;
  min-width: 220px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.t-red   { background: #991B1B; }
.t-green { background: #166534; }
.t-amber { background: #92400E; }
