* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  /* Soft light background with subtle BLS blue and gold tones (no photo) */
  background:
    radial-gradient(circle at 12% 18%, rgba(43, 115, 210, 0.10) 0, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(184, 144, 42, 0.10) 0, transparent 42%),
    linear-gradient(135deg, #f6f8fb 0%, #eceff5 100%) fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Centred card - same size as before */
.card {
  background: #fff;
  width: 100%;
  max-width: 348px;
  padding: 44px 38px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.logo { display: block; width: 145px; max-width: 70%; height: auto; margin: 0 auto 32px; }

.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%;
  height: 35px;
  border: 0;
  border-bottom: 2px solid #c8ccd2;
  background: #fff;
  padding: 0 36px 0 2px;
  font-size: 14px;
  color: #222;
  outline: none;
}
.field input::placeholder { color: #6b6b6b; }
.field input:focus { border-bottom-color: #2b73d2; }

.toggle {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 3px; cursor: pointer; color: #666; line-height: 0;
}
.toggle svg { width: 16px; height: 16px; }

.login {
  width: 100%; height: 32px; margin-top: 16px; border: 0;
  background: #2b73d2; color: #fff; font-size: 14px; letter-spacing: .3px; cursor: pointer;
}
.login:hover { background: #2563b8; }
.login:disabled { opacity: .6; cursor: wait; }

.msg { color: #d32f2f; min-height: 18px; font-size: 12px; margin: 10px 0 0; }
.footer { margin-top: 28px; font-size: 11px; color: #555; text-align: center; }

/* Phones and small windows */
@media (max-width: 480px) {
  body { padding: 0; align-items: stretch; background: #fff; }
  .card { max-width: none; min-height: 100vh; box-shadow: none; padding: 40px 24px 20px; }
  .field input { height: 42px; font-size: 15px; }
  .login { height: 38px; font-size: 15px; }
}

/* ---- Microsoft-style decoration ---- */
body { position: relative; overflow-x: hidden; }
body::before, body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none; border-radius: 56px;
}
body::before {
  width: 540px; height: 540px; top: -160px; left: -140px; transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(43, 115, 210, 0.12), rgba(43, 115, 210, 0.02));
  border: 1px solid rgba(43, 115, 210, 0.12);
}
body::after {
  width: 640px; height: 640px; bottom: -240px; right: -180px; transform: rotate(-22deg);
  background: linear-gradient(135deg, rgba(184, 144, 42, 0.12), rgba(184, 144, 42, 0.02));
  border: 1px solid rgba(184, 144, 42, 0.14);
}
.card { position: relative; z-index: 1; }

/* Sign-in page: logo and heading left-aligned */
.signin .logo { margin: 0 auto 22px; width: 120px; }
.title { font-size: 22px; font-weight: 600; color: #1b1b1b; margin: 0 0 18px; text-align: center; }
.help { font-size: 12px; color: #555; margin: 18px 0 0; text-align: center; }

@media (max-width: 480px) {
  body::before, body::after { display: none; }
}
.help a { color: #2b73d2; text-decoration: none; }
.help a:hover { text-decoration: underline; }
