:root { font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.2; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px;
  background: linear-gradient(rgba(20, 30, 50, 0.35), rgba(20, 30, 50, 0.35)), url('cabinet-orthophonie.jpg') center/cover no-repeat fixed;
  color: #2b2f3a;
}

.logo-dev {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  opacity: 0.95;
}

.login-box {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 26px 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(20, 30, 50, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 360px;
}

.login-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.login-box > * {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 1.3rem;
  margin: 0 0 4px;
  text-align: center;
}

.sous-titre {
  text-align: center;
  color: #6b7794;
  font-size: 0.9rem;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 0.85rem;
  margin: 10px 0 4px;
  color: #444;
  line-height: 1.1;
}

input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #cdd3e0;
  font-size: 0.92rem;
  line-height: 1.1;
}

input:focus {
  outline: 2px solid #3d5af1;
  outline-offset: 1px;
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #3d5af1;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.1;
  cursor: pointer;
}

button:hover { background: #2f47d6; }

.erreur {
  color: #c0392b;
  font-size: 0.88rem;
  min-height: 1.3em;
  margin: 12px 0 0;
  text-align: center;
}

#btn-renvoyer-code {
  background: none;
  color: #3d5af1;
  font-size: 0.85rem;
  margin-top: 10px;
  padding: 4px;
  text-decoration: underline;
}
#btn-renvoyer-code:hover { background: none; color: #2f47d6; }
