*{
  box-sizing:border-box;
}

:root{
  --primary:#071029;
  --sidebar:#1f2937;
  --sidebar-dark:#111827;
  --border:#d7e0eb;
  --muted:#64748b;
  --bg:#eef3f8;
}

html,
body{
  width:100%;
  height:100%;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--primary);
}

.login-screen{
  width:100vw;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(238,243,248,.95)),
    radial-gradient(circle at 50% 22%, rgba(15,23,42,.12), transparent 34%),
    var(--bg);
}

.login-card{
  width:min(440px, 94vw);
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:30px;
  box-shadow:0 14px 35px rgba(15,23,42,.12);
}

.brand{
  max-width:100%;
  margin:0 0 22px;
  color:var(--primary);
  font-size:25px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

h1{
  margin:0 0 10px;
  color:var(--primary);
  font-size:28px;
  line-height:1.18;
  font-weight:900;
  letter-spacing:-.3px;
}

p{
  margin:0 0 22px;
  color:#475569;
  font-size:14px;
  line-height:1.55;
}

.login-form{
  margin-top:8px;
}

label{
  display:block;
  margin:0 0 7px;
  color:var(--primary);
  font-size:13px;
  font-weight:800;
}

input{
  width:100%;
  height:44px;
  margin:0 0 16px;
  padding:0 14px;
  border:1px solid #c8d4e3;
  border-radius:7px;
  background:#fff;
  color:var(--primary);
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

input:focus{
  border-color:#071029;
  box-shadow:0 0 0 3px rgba(7,16,41,.10);
}

.login-button{
  display:flex;
  width:100%;
  height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--primary);
  border-radius:7px;
  background:var(--primary);
  color:#fff;
  font-size:14px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:filter .15s ease, transform .05s ease, box-shadow .15s ease;
}

.login-button:hover{
  filter:brightness(1.08);
  box-shadow:0 8px 18px rgba(7,16,41,.18);
}

.login-button:active{
  transform:translateY(1px);
}

.microsoft{
  background:var(--primary);
  border-color:var(--primary);
}

.not-configured{
  margin-top:16px;
  padding:13px 14px;
  border-radius:8px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:14px;
  line-height:1.45;
}

.not-configured code,
.admin-help code{
  background:rgba(15,23,42,.06);
  padding:3px 6px;
  border-radius:6px;
  font-family:Consolas,"Courier New",monospace;
}

.admin-help{
  margin-top:16px;
  padding:13px 14px;
  border-radius:8px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  font-size:13px;
  line-height:1.45;
}

.back-link{
  display:flex;
  width:100%;
  height:42px;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  background:#fff;
  color:var(--primary);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  transition:background .15s ease, border-color .15s ease;
}

.back-link:hover{
  background:#f8fafc;
  border-color:#94a3b8;
}

.error-box{
  margin-top:16px;
  padding:13px 14px;
  border-radius:8px;
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
  font-size:14px;
  line-height:1.45;
}

.hidden{
  display:none!important;
}

@media (max-width:520px){
  .login-screen{
    padding:16px;
  }

  .login-card{
    padding:24px;
  }

  .brand{
    font-size:23px;
  }

  h1{
    font-size:25px;
  }
}
