/* 38.3.9.4.2 – eNSA 3.0 javni auth shell */
:root{--auth-bg:#f4f6f8;--auth-surface:#fff;--auth-text:#172334;--auth-muted:#667386;--auth-border:#dfe5eb;--auth-accent:#2f6f55;--auth-accent-2:#1f6feb;--auth-shadow:0 20px 55px rgba(22,35,52,.10)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--auth-text);background:var(--auth-bg)}body.ensa-auth-body{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden}a{color:#1769aa}.ensa-auth-top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid var(--auth-border);backdrop-filter:blur(12px)}.ensa-auth-top__inner{width:min(1400px,calc(100% - 32px));height:66px;margin:auto;display:flex;align-items:center;gap:22px}.ensa-auth-brand{display:inline-flex;align-items:center;gap:10px;color:var(--auth-text);text-decoration:none;font-weight:850;font-size:20px}.ensa-auth-brand__mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#202c3c;color:#fff;font-size:22px}.ensa-auth-nav{display:flex;align-items:center;gap:5px;min-width:0}.ensa-auth-nav a{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:9px;color:#4d5967;text-decoration:none;font-size:13px;font-weight:700}.ensa-auth-nav a:hover,.ensa-auth-nav a:focus-visible{background:#f0f3f6;color:#172334;outline:none}.ensa-auth-top__spacer{flex:1}.ensa-auth-login-link{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--auth-border);border-radius:10px;color:#344254;text-decoration:none;font-size:13px;font-weight:750;background:#fff}.ensa-auth-login-link:hover{background:#f6f8fa}.auth-shell{flex:1 0 auto;width:100%;display:flex;align-items:center;justify-content:center;padding:46px 20px}.auth-card{width:min(820px,100%);border:1px solid var(--auth-border);border-radius:18px;overflow:hidden;background:var(--auth-surface);box-shadow:var(--auth-shadow)}.auth-card-header{padding:24px 30px;background:linear-gradient(135deg,#eaf4ff,#f5f9ff);border-bottom:1px solid var(--auth-border)}.auth-card-header.auth-card-header--register{background:linear-gradient(135deg,#e8f8ef,#f4fbf7)}.auth-heading-row{display:flex;align-items:center;gap:13px}.auth-heading-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff;color:var(--auth-accent-2);box-shadow:0 4px 14px rgba(0,0,0,.06);font-size:18px}.auth-card-header--register .auth-heading-icon{color:var(--auth-accent)}.auth-title{margin:0;font-size:28px;line-height:1.15;font-weight:800}.auth-subtitle{margin:6px 0 0 55px;color:var(--auth-muted);font-size:14px}.auth-card-body{padding:30px}.auth-form-wrap{max-width:610px;margin:0 auto}.login-form{margin-top:0}.auth-card .form-group{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px 18px;align-items:start;margin-bottom:17px}.auth-card .form-group>.control-label{padding-top:11px;text-align:right;font-weight:750;color:#344254}.auth-card .form-group>.col-sm-8,.auth-card .form-group>.col-sm-offset-4{width:auto;max-width:none;float:none;padding:0}.auth-card .form-group>.col-sm-offset-4{grid-column:2}.auth-card .form-control{display:block;width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbd3db;border-radius:10px;background:#fff;color:#172334;font:inherit;box-shadow:none}.auth-card .form-control:focus{border-color:#6e97bd;outline:3px solid rgba(31,111,235,.12)}.auth-card .input-group{display:flex}.auth-card .input-group-text{display:flex;align-items:center;padding:0 12px;border:1px solid #cbd3db;border-right:0;border-radius:10px 0 0 10px;background:#f5f7f9}.auth-card .input-group .form-control{border-radius:0 10px 10px 0}.password-wrapper{position:relative}.password-wrapper .form-control{padding-right:44px}.password-wrapper .toggle-password{position:absolute;right:14px;top:23px;transform:translateY(-50%);color:#9aa4ae;cursor:pointer}.password-wrapper .toggle-password:hover{color:#344254}.remember-me{display:flex!important;align-items:center;gap:8px;margin:0!important}.remember-me label{font-weight:500!important}.auth-inline-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.auth-card .submit-button,.auth-card .btn-primary,.auth-card .btn-success{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:10px;color:#fff!important;background:#1769e0;text-decoration:none;font:inherit;font-size:14px;font-weight:800;cursor:pointer}.auth-card .btn-success{background:#198754}.auth-card .submit-button:hover,.auth-card .btn-primary:hover{background:#145ac0}.auth-card .btn-success:hover{background:#157347}.auth-card .btn-link{display:inline-flex;align-items:center;padding:8px 3px;border:0;background:none;text-decoration:none;font-size:13px}.auth-mode-switch{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.auth-mode-switch .btn{padding:8px 12px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:750}.auth-note{margin-top:22px;padding:12px 14px;border:1px solid var(--auth-border);border-radius:10px;background:#f8fafb;color:var(--auth-muted);font-size:13px}.error-message{margin-top:5px;color:#b42318;font-size:12px}.success-message{margin-top:5px;color:#18794e;font-size:12px}.form-text{margin-top:5px;color:var(--auth-muted);font-size:12px}.hp-field{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}.ensa-auth-footer{border-top:1px solid var(--auth-border);background:#fff}.ensa-auth-footer__inner{width:min(1400px,calc(100% - 32px));margin:auto;padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--auth-muted);font-size:12px}.ensa-auth-footer nav{display:flex;gap:14px;flex-wrap:wrap}.ensa-auth-footer a{color:#566272;text-decoration:none}.ensa-auth-footer a:hover{text-decoration:underline}.alert{border-radius:10px}.auth-card input[type=checkbox]{accent-color:#1769e0}.auth-card label{line-height:1.4}
@media(max-width:820px){.ensa-auth-nav{display:none}.ensa-auth-top__inner{width:min(100% - 22px,1400px)}.auth-shell{padding:28px 12px;align-items:flex-start}.auth-card-header,.auth-card-body{padding:22px 18px}.auth-subtitle{margin-left:0}.auth-card .form-group{grid-template-columns:1fr;gap:6px}.auth-card .form-group>.control-label{text-align:left;padding-top:0}.auth-card .form-group>.col-sm-offset-4{grid-column:auto}.ensa-auth-footer__inner{width:min(100% - 24px,1400px)}}
@media(max-width:520px){.ensa-auth-top__inner{height:60px}.ensa-auth-login-link span{display:none}.auth-card{border-radius:14px}.auth-card-header,.auth-card-body{padding:18px 15px}.auth-title{font-size:24px}.auth-heading-icon{width:38px;height:38px}.auth-inline-actions{align-items:flex-start;flex-direction:column}.auth-card .submit-button,.auth-card .btn-primary,.auth-card .btn-success{width:100%}.auth-mode-switch{display:grid;grid-template-columns:1fr 1fr}.auth-mode-switch .btn{text-align:center}}

/* 38.3.9.4.3 – auth obrazci živijo znotraj standardnega javnega layouta. */
body.ensa-auth-body{display:flex;flex-direction:column;min-height:100vh;background:#f6f7f9}
body.ensa-auth-body>.site-main{flex:1 0 auto}
body.ensa-auth-body .auth-shell{min-height:calc(100vh - 54px - 43px - 210px);padding:54px 20px}
body.ensa-auth-body .site-footer{margin-top:auto}
@media(max-width:899.98px){body.ensa-auth-body .auth-shell{min-height:calc(100vh - 54px - 180px);padding:34px 12px}}


/* 38.3.9.4.4 – brez umetnega višinskega presežka na prijavi/registraciji. */
html:has(body.ensa-auth-body),body.ensa-auth-body{min-height:100%;height:auto}
body.ensa-auth-body{min-height:100dvh;overflow-x:hidden}
body.ensa-auth-body>.site-main{flex:1 1 auto;display:flex;min-height:0}
body.ensa-auth-body .auth-shell{flex:1 1 auto;min-height:0!important;padding:36px 20px}
body.ensa-auth-body .site-footer{flex:0 0 auto;margin-top:0}
@media(max-width:899.98px){body.ensa-auth-body .auth-shell{min-height:0!important;padding:28px 12px}}


/* 38.3.9.4.5 – auth obrazci: od 736 px naprej ostanejo oznake v eni vrstici. */
@media (min-width:736px){
  body.ensa-auth-body .auth-card{
    width:min(1040px,calc(100vw - 48px));
    max-width:1040px;
  }
  body.ensa-auth-body .auth-form-wrap{
    max-width:780px;
  }
  body.ensa-auth-body .auth-card .form-group{
    grid-template-columns:210px minmax(0,1fr)!important;
    gap:12px 20px!important;
  }
  body.ensa-auth-body .auth-card .form-group>.control-label{
    text-align:right!important;
    padding-top:11px!important;
    white-space:nowrap;
  }
  body.ensa-auth-body .auth-card .form-group>.col-sm-offset-4{
    grid-column:2!important;
  }
  body.ensa-auth-body .auth-note{
    white-space:normal;
  }
}
@media (min-width:900px){
  body.ensa-auth-body .auth-form-wrap{max-width:800px}
  body.ensa-auth-body .auth-note{font-size:13px}
}
/* Na prijavi naj bo kratko spodnje obvestilo enovrstično, kadar je dovolj prostora. */
@media (min-width:900px){
  body.ensa-auth-body .auth-note{white-space:nowrap}
}
@media (max-width:735.98px){
  body.ensa-auth-body .auth-card .form-group{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  body.ensa-auth-body .auth-card .form-group>.control-label{
    text-align:left!important;
    padding-top:0!important;
    white-space:normal;
  }
  body.ensa-auth-body .auth-card .form-group>.col-sm-offset-4{
    grid-column:auto!important;
  }
}
