/*
  Stijlen voor OnView loginpagina
  Logregels in het Nederlands, code in het Engels
*/

:root {
  --teal-700: #0A6275; /* Donkergroenblauw van de balk */
  --teal-600: #0d5a66;
  --card-border: #d9d9d9;
  --card-bg: #f6f6f6;
  --field-bg: #ffffff;
  --field-border: #c8c8c8;
  --label: #3d3d3d;
  --text: #1c1c1c;
  --muted: #7a7a7a;
  --shadow: 0 1px 0 rgba(0,0,0,.05);
}

/* Reset (beperkt) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow-y: hidden; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  /* Loginpagina mag niet scrollen */
  overflow-y: hidden;
}

/* Utility classes om bron te benaderen */
.hidden { display: none !important; }
.full-height { height: 100%; }

/* Top bar */
.topbar {
  height: 54px;
  background: var(--teal-700);
  color: #fff;
  display: flex;
  align-items: center;
}
.topbar, .topbar * {
  font-family: "Verdana","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 12px;
  line-height: 1.428571429;
}
.topbar .container { height: 54px; width: 100%; display: flex; align-items: center; }
.topbar .col-sm-12 {
  position: relative;
  min-height: 1px;
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
  display: flex;
  align-items: center;
}
.navbar-left { display: inline-flex; align-items: center; }
.navbar-center { flex: 1 1 auto; text-align: center; }
.navbar-right { margin-left: auto; display: inline-flex; align-items: center; }
.navbar-brand { color: #fff; display: inline-flex; align-items: center; gap: 8px; position: relative; font-size: 14px; }
.navbar-text { color: #fff; display: inline-flex; align-items: center; height: 54px; }
/* Kleine verticale ruimte rondom logo/brand */
.navbar-brand { padding-top: 3px; padding-bottom: 3px; }

/* Iconen (32x32) voor OnView-logo en overlay */
.icon { display: inline-block; vertical-align: middle; }
.icon-32 { width: 32px; height: 32px; }
.icon-before { margin-right: 6px; }
.icon-main-logo {
  width: 38px; height: 38px;
  background: url("images/onview_logo_38x38.png") no-repeat center/contain;
}
.icon-logo-overlay- {
  width: 32px; height: 14px; border-radius: 14px / 7px;
  background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0));
  pointer-events: none;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%; position: relative; display: inline-block;
  background: radial-gradient(circle at 50% 50%, #58c3d2 0 35%, #0a6c7a 36% 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.brand-name { font-weight: 600; letter-spacing: .2px; }
.version { font-size: 12px; opacity: .9; }

/* Page layout (loginContainer gebruikt absolute centrering; deze sectie niet meer nodig) */

/* Login card */
.login-card {
  width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 14px;
}
.icon-key { width: 20px; height: 20px; }
.icon-keys { width: 20px; height: 20px; object-fit: contain; }

/* Panel-stijlen voor loginContainer */
#loginContainer, #loginContainer * {
  font-family: "Verdana","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 12px;
  line-height: 1.428571429;
  color: #000;
}
.panel { background: #fff; border: 1px solid var(--dx-color-border, #ddd); border-radius: var(--dx-border-radius, 4px); box-shadow: var(--shadow); }
.panel-default { border-color: var(--dx-color-border, #ddd); }
.panel-heading { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--dx-color-border, #ddd); background: #f5f5f5; color: var(--dx-color-text, #333); }
.panel-body { padding: 15px; background: #ffffff !important; }
.panel-footer { padding: 10px 14px; background: #f5f5f5; border-top: 1px solid var(--dx-color-border, #ddd); }

/* Grid zoals col-sm-5/7 (zonder echte bootstrap) */
.form-horizontal .form-group { display: flex; align-items: center; margin-bottom: 2px; }
.control-label { width: 40%; padding-right: 10px; color: var(--label); }
.col-sm-5 { width: 40%; }
.col-sm-7 { width: 60%; }
.col-sm-7 .form-control { width: calc(100% - 12px); margin-left: 12px; height: 31px; padding: 4px 6px; background: #ffffff; border: 1px solid #d9d9d9; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(0,0,0,.06); }
.col-sm-7 .form-control:focus { border-color: #9adbe5; outline: none; box-shadow: 0 0 0 2px rgba(154,219,229,.25), inset 0 1px 1px rgba(0,0,0,.06); }

/* Knoppen */
.btn { display: inline-block; height: var(--dx-component-height, 36px); padding: 6px 12px; font-size: 12px; line-height: 1.428571429; border: 1px solid var(--dx-color-border, #ddd); border-radius: var(--dx-border-radius, 4px); background: #f6f6f6; cursor: pointer; }
.btn-default { background: #ffffff; }
.btn-block { width: 100%; }
.no-margin { margin: 0; }
.btn:hover { background: #eeeeee; }

/* Specifiek: verlaag aanmeldknop ~20% in hoogte */
#loginButton { --dx-component-height: 29px; }

/* Icon-keys in panel heading (32x32 zoals opgegeven) */
.panel-heading .icon-keys { align-self: center; width: 28px; height: 28px; background-size: contain; }
.icon-keys { background: url("images/keys.png") no-repeat center/contain; display: inline-block; }

.login-form { padding: 12px 14px 16px; }
.form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.form-row label {
  color: var(--label);
  font-size: 13px;
}
.form-row input {
  height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  border-radius: 2px;
  font-size: 14px;
}
.form-row input:focus {
  outline: 2px solid #9adbe5;
  border-color: #4db7c6;
}

.actions { padding-top: 6px; display: grid; grid-template-columns: 160px 1fr; }
.actions .btn-primary {
  grid-column: 2;
  height: 30px;
  background: #ffffff;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
}
.actions .btn-primary:hover { background: #f8f8f8; }

/* A11y */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsief: kaart centreren en verkleinen op kleine schermen */
@media (max-width: 560px) {
  .login-card { width: 100%; }
  .form-row, .actions { grid-template-columns: 1fr; }
  .actions .btn-primary { grid-column: 1; }
}


