/* =============================================
   login.css - NemLog-in MitID Login Page
   Exact pixel-perfect copy of the real design
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;width:100%}
body{background:#f5f5f5;font-family:Inter,'Helvetica Neue',Arial,sans-serif;font-size:16px;color:#333;display:flex;flex-direction:column;min-height:100vh}

/* ── HEADER ── */
.header-container{background:#f5f5f5;display:flex;flex-direction:column;align-items:center;border:none}
.header-content{display:flex;flex-direction:column;flex-grow:1;max-width:912px;width:100%;justify-content:flex-end;align-items:stretch}
.header-row{display:flex;flex-direction:row;flex-grow:0;width:100%}
.header-links{display:flex;flex-direction:row;justify-content:flex-start;padding-top:24px;padding-bottom:10px;min-height:30px;align-items:center}
.link-spacer{display:flex;flex:1}
.link-language{display:flex;flex:0;background:#fff;border:1px solid #bfbfbf;border-radius:4px;cursor:pointer;color:#0060E6;font-size:12px;font-weight:700;padding:6px 16px;margin-left:8px;text-decoration:none}
.link-language:hover{color:#000}
.link-burger{display:none;align-items:center;gap:4px;font-size:12px;font-weight:600;color:#191919;background:none;border:none;cursor:pointer;padding:4px}
.header-logo{display:flex;flex-direction:column;flex-grow:1;align-self:center;justify-content:center;align-items:start}
.header-logo img{margin-top:-48px;margin-left:-200px;height:45px;width:auto}
.header-nav{display:flex;flex-direction:row;flex-grow:0;justify-content:flex-start;white-space:nowrap;overflow:hidden}
.header-nav-link{display:flex;flex-direction:row;height:48px;font-weight:400;text-decoration:none;color:#000}
.header-nav-link.selected{font-weight:500}
.btn-slice2{display:flex;padding:7px 32px;justify-content:center;align-items:center;font-size:16px;font-weight:500;border-top:3px solid transparent;border-bottom:3px solid transparent}
.header-nav-link.selected>.btn-slice2{background:#fff;border-top:3px solid #0060E6}
.header-nav-link:not(.selected):hover>.btn-slice2{border-bottom:3px solid #999}
.btn-lead-spacer{display:flex;flex-basis:50px;max-width:50px}

/* ── PAGE ── */
.page-container{display:flex;flex-direction:column;align-items:center;flex:1;padding-top:20px}
.page-content{display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;max-width:960px;width:100%}
.page-section{display:flex;flex:1;flex-shrink:0;flex-direction:column}
.main-section{padding:64px 32px 16px 0;flex:1}

/* ── LOGIN CARD ── */
.login-card{background:#fff;border:1px solid #ccc;border-radius:0;padding:34px 36px;max-width:440px;width:100%;position:relative;min-height:480px}
.login-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}
.login-card-header h1{font-size:20px;font-weight:700;color:#333;margin:0;line-height:1.3}
.login-card-header-right{display:flex;align-items:center;gap:6px;font-size:14px;color:#005CA9;font-weight:600}
.login-card-header-right svg{width:20px;height:20px}
.login-card-divider{border:none;border-top:1px solid rgba(0,0,0,.1);margin:16px 0 28px}

/* ── FIELD ── */
.field-label{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.field-label label{font-size:14px;font-weight:600;color:#333;text-transform:uppercase;letter-spacing:.4px}
.field-label .info-icon{width:18px;height:18px;cursor:pointer;color:#bbb;flex-shrink:0}
.field-label .info-icon:hover{color:#005CA9}

/* ── INPUT ── */
.input-wrap{position:relative;margin-bottom:14px}
.input-wrap input{width:100%;height:46px;border:1px solid #ccc;border-radius:4px;padding:0 60px 0 14px;font-size:15px;font-family:inherit;color:#333;outline:none;transition:border-color .15s;background:#fff}
.input-wrap input:focus{border-color:#005CA9;box-shadow:0 0 0 2px rgba(0,92,169,.1)}
.input-wrap .hide-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;color:#888;cursor:pointer;background:none;border:none;padding:2px 6px;font-family:inherit}
.input-wrap .hide-btn:hover{color:#005CA9}

/* ── BUTTON ── */
.btn-primary{width:100%;height:46px;border:none;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 20px;font-family:inherit;text-transform:uppercase;letter-spacing:.5px;transition:background .2s;margin-bottom:12px}
.btn-primary.active{background:#0060e6;color:#fff}
.btn-primary.active:hover{background:#004cb8}
.btn-primary.disabled{background:#ccc;color:#fff;cursor:not-allowed}
.btn-primary .arrow-icon{display:flex;align-items:center;flex-shrink:0}

/* ── FORGOT LINK ── */
.forgot-link{display:inline-flex;align-items:center;gap:10px;color:#005CA9;font-size:14px;cursor:pointer;text-decoration:none;margin-bottom:8px}
.forgot-link:hover{text-decoration:underline}
.forgot-link svg{width:20px;height:20px;flex-shrink:0}
.login-card .checkbox-wrap{margin-top:140px}

/* ── CHECKBOX ── */
.checkbox-wrap{display:flex;align-items:center;gap:10px;margin:18px 0;cursor:pointer}
.checkbox-wrap input[type=checkbox]{width:18px;height:18px;border:2px solid #333;border-radius:3px;accent-color:#005CA9;cursor:pointer;flex-shrink:0;appearance:auto}
.checkbox-wrap label{font-size:14px;color:#333;cursor:pointer;user-select:none}

/* ── BOTTOM LINKS ── */
.bottom-links{display:flex;align-items:center;gap:40px;margin-top:4px}
.bottom-links span{font-size:14px;font-weight:600;color:#005CA9;cursor:pointer}
.bottom-links span:hover{text-decoration:underline}

/* ── SIDEBAR ── */
.sidebar-wrapper{padding:24px 0 0 24px;max-width:308px}
.info-section{margin-bottom:10px}
.info-header{display:flex;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;height:28px;padding:4px 10px;background:#f2f7fe;font-size:11px;font-weight:700;color:#1a1a1a;width:fit-content}
.info-content{display:block;border:1px solid #ccc;border-radius:0;padding:8px 10px;font-size:12px;line-height:18px;color:#333}
.info-content p{margin:0 0 4px}
.info-content p:last-child{margin-bottom:0}
.info-content ul{list-style:none;padding:0;margin:0}
.info-content li{padding:0;margin-bottom:3px;font-size:12px}
.info-content li::before{content:'-';margin-right:4px}
.info-content a{color:#0060E6;text-decoration:underline;font-size:12px}
.info-content a:hover{text-decoration:underline}

/* ── LOADER ── */
.loader-container{background:#fff;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1000;display:flex;align-items:center;justify-content:center;padding:40px 0}
.loader-icon{margin-bottom:20px}
.loader-shield{position:relative;width:100px;height:100px;margin:0 auto 24px}
.loader-shield svg{width:100%;height:100%}
.rtr{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;border:3px solid #0060e6;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.loader-text{font-size:16px;font-weight:700;color:#001C44;text-align:center;margin-bottom:4px}
.loader-subtext{font-size:14px;color:#666;text-align:center}

/* ── RESPONSIVE ── */
@media(max-width:879px){
  .header-logo{display:none}
  .link-burger{display:flex}
  .main-section{padding:24px 16px}
  .sidebar-wrapper{display:none!important}
  .header-nav{flex-direction:column}
  .header-nav-link{display:none}
  .header-nav-link.selected{display:flex;flex-grow:1}
  .header-nav-link .btn-slice2{border:none;background:#f5f5f5;flex-grow:1;justify-content:flex-start;border-bottom:3px solid #999;padding-left:15px;font-size:14px}
  .header-nav-link.selected>.btn-slice2{background:#fff;border-bottom:3px solid #0060E6}
  .btn-lead-spacer{display:none!important}
  .page-content{grid-template-columns:1fr;justify-content:center}
  .header-links{padding-right:8px}

  /* ── MOBILE: center the form card, scale it up ── */
  .main-section{display:flex;flex-direction:column;align-items:center;padding:24px 16px}
  .login-card{margin:0 auto;min-height:520px;padding:34px 28px}
  .login-card-header h1{font-size:21px}
  .login-card-divider{margin:20px 0 30px}
  .field-label label{font-size:15px}
  .input-wrap input{height:52px;font-size:17px;padding:0 64px 0 16px}
  .btn-primary{height:52px;font-size:15px}
  .forgot-link{font-size:15px}
  .login-card .checkbox-wrap{margin-top:120px}
  .checkbox-wrap span{font-size:15px}
  .bottom-links span{font-size:15px}
  .init-loader{min-height:440px}
}

.hidden{display:none!important}
