/* ════════════════════════════════════════════════════════════
   login.css — gedeeld, modern inlogscherm voor BEIDE portalen
   (Werkportaal + Klantportaal). Eén bron van waarheid voor de
   inlog-UI: zelfde uiterlijk, ongeacht via welk portaal je binnenkomt.
   Gescoped onder .selvi-auth zodat het niets anders raakt.
   ════════════════════════════════════════════════════════════ */
.selvi-auth {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(40,120,140,.40), transparent 60%),
    linear-gradient(160deg, #0A1A22 0%, #0E2E38 52%, #15414F 100%);
}
.selvi-auth.hidden { display: none; }
.selvi-auth .sa-card {
  width: 100%; max-width: 408px;
  background: #fff; border-radius: 20px;
  padding: 34px 32px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.06) inset;
  animation: saIn .35s cubic-bezier(.16,.84,.44,1);
}
@keyframes saIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.selvi-auth .sa-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.selvi-auth .sa-logo {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #1E7385, #0E3947);
  box-shadow: 0 6px 16px rgba(14,57,71,.34);
}
.selvi-auth .sa-logo img { width: 26px; height: 26px; object-fit: contain; }
.selvi-auth .sa-brand-text h1 { margin: 0; font-size: 17px; font-weight: 800; color: #0F1F26; letter-spacing: -.2px; }
.selvi-auth .sa-brand-text span { font-size: 12px; font-weight: 600; color: #5B6B73; }

.selvi-auth .sa-title { font-size: 21px; font-weight: 800; color: #0F1F26; letter-spacing: -.3px; }
.selvi-auth .sa-sub { font-size: 13px; color: #5B6B73; margin: 4px 0 20px; line-height: 1.5; }

.selvi-auth .sa-label { display: block; font-size: 12.5px; font-weight: 700; color: #34474F; margin: 14px 0 6px; }
.selvi-auth .sa-label:first-of-type { margin-top: 0; }
.selvi-auth .sa-input {
  width: 100%; height: 46px; box-sizing: border-box;
  padding: 0 14px; border-radius: 12px;
  border: 1px solid #D7E1E6; background: #F7FAFB;
  font-family: inherit; font-size: 14px; color: #0F1F26;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.selvi-auth .sa-input::placeholder { color: #9DACB3; }
.selvi-auth .sa-input:focus {
  outline: none; border-color: #1E7385; background: #fff;
  box-shadow: 0 0 0 3px rgba(30,115,133,.16);
}

.selvi-auth .sa-row { display: flex; align-items: center; justify-content: flex-end; margin: 11px 0 4px; }
.selvi-auth .sa-btn {
  width: 100%; height: 47px; margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(150deg, #1E7385, #0E3947);
  box-shadow: 0 10px 22px rgba(14,57,71,.28);
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.selvi-auth .sa-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(14,57,71,.34); }
.selvi-auth .sa-btn:active { transform: none; }
.selvi-auth .sa-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.selvi-auth .sa-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: #1B6B8C;
}
.selvi-auth .sa-link:hover { text-decoration: underline; }
.selvi-auth .sa-back { display: inline-block; margin-top: 14px; }

.selvi-auth .sa-msg, .selvi-auth .sa-err {
  min-height: 18px; margin-top: 12px;
  font-size: 12.5px; line-height: 1.5; color: #C2402A;
}
.selvi-auth .sa-panel.hidden { display: none; }

.selvi-auth .sa-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid #EDF1F3;
  font-size: 11.5px; color: #8499A2; line-height: 1.55; text-align: center;
}

/* MOBIEL 19-07: iOS zoomt in op inputs < 16px — inlogvelden op telefoonformaat omhoog. */
@media (max-width:760px){ .sa-input{ font-size:16px; } }
