:root{
  --bg1:#f4f7ff;
  --bg2:#eef2ff;
  --card:#ffffff;
  --border:#e8eef9;
  --text:#0f172a;
  --muted:#6b7280;
  --navy:#0b2a5b;
  --navy2:#082247;
  --shadow: 0 18px 40px rgba(15, 23, 42, .10);
  --radius: 14px;
}

*{ box-sizing:border-box; }

html,body{
  height:100%;
}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 20%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* center */
.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 14px;
}

.login-card{
  width:min(520px, 92vw);
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;

  /* IMPORTANT: mos lër asgjë të dalë jashtë */
  overflow:hidden;
}

.login-logo{
  height:34px;
  width:auto;
  object-fit:contain;
  display:block;
  margin-bottom: 14px;
}

.login-welcome{
  font-family: Nunito, Inter, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 4px 0 4px;
  text-align:center;
}

.login-sub{
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  text-align:center;
}

.login-notice,
.login-error{
  width:100%;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.25;
}

.login-notice{
  background:#e0f2fe;
  color:#075985;
  border:1px solid #bae6fd;
}

.login-error{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}

.login-form{
  width:100%;
}

/* fields */
.login-field{
  width:100%;
  margin-bottom: 14px;
}

.login-field label{
  display:block;
  font-size: 12px;
  letter-spacing:.08em;
  font-weight: 800;
  color:#374151;
  margin-bottom: 8px;
}

/* inputs full width, stable */
.login-field input{
  width:100%;
  display:block;
  border:1px solid #e5e7eb;
  background:#ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline:none;
  box-shadow:none;
}

.login-field input:focus{
  border-color:#c7d2fe;
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}

/* password wrapper - FIX overflow */
.pw-wrap{
  width:100%;
  position:relative;
}

/* add padding-right for the eye button */
.pw-wrap input{
  padding-right: 46px;
}

/* eye button stays inside input without stretching layout */
.pw-eye{
  position:absolute;
  top:50%;
  right:10px;
  transform: translateY(-50%);
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  border-radius: 10px;
}

.pw-eye:hover{
  background: rgba(15,23,42,.05);
}

.pw-eye svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:#6b7280;
  stroke-width: 1.8;
}

/* button */
.login-btn{
  width:100%;
  border:0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing:.02em;
  color:#fff;
  background: var(--navy);
  cursor:pointer;
  margin-top: 6px;
  box-shadow: 0 10px 18px rgba(11,42,91,.18);
}

.login-btn:hover{
  background: var(--navy2);
}

/* footer */
.login-footer{
  margin: 14px 0 0;
  color:#9aa3b2;
  font-size: 12px;
}

/* bypass */
.bypass-box{
  width:100%;
  margin-top:16px;
  padding-top:14px;
  border-top:1px dashed #e5e7eb;
}

.bypass-title{
  font-family: Nunito, Inter, sans-serif;
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 4px;
}

.bypass-sub{
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 10px;
}

.bypass-row{ width:100%; margin-bottom:10px; }

.bypass-btn{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight: 800;
  cursor:pointer;
}

.bypass-btn:hover{ border-color:#cbd5e1; }

.bypass-code{
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
}

.bypass-code input{
  flex:1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid #e5e7eb;
  outline:none;
}

.bypass-btn.dark{
  width:auto;
  min-width:120px;
  background:#111827;
  color:#fff;
  border-color:#111827;
}

@media (max-width: 420px){
  .login-card{ padding: 22px 18px 16px; }
  .login-welcome{ font-size: 30px; }
  .bypass-code{ flex-direction:column; }
  .bypass-btn.dark{ width:100%; }
}