* {
  box-sizing: border-box;
}

:root {
  --bg1: #ffffff;
  --bg2: #ffffff;
  --glass: rgba(255, 255, 255, 0.025);
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe5f1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Prompt', sans-serif;
  background: #fff;
  color: var(--text);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 430px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(148, 148, 148, 0.2);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.login-card::before {
  display: none;
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo {
  margin-bottom: 12px;
}

.brand-logo img {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.login-brand h1 {
  margin: 10px 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0b1b44;
}

.login-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.55);
  color: #64748b;
  backdrop-filter: blur(12px);
}

.form-control {
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #172033;
  backdrop-filter: blur(12px);
}

.form-control::placeholder {
  color: #78869a;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 .2rem rgba(53, 74, 104, 0.12), inset 0 1px 0 rgba(255,255,255,.9);
  border-color: rgba(255, 255, 255, 0.96);
}

.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #536176;
}

.btn-primary {
  height: 48px;
  font-weight: 600;
  border-radius: 14px;
  background: linear-gradient(135deg, #24364f, #3e5777);
  border: none;
  box-shadow: 0 10px 26px rgba(35, 54, 79, 0.25), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d2c41, #354d6b);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(35, 54, 79, 0.28), inset 0 1px 0 rgba(255,255,255,.22);
}

.login-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #3c485a;
  font-size: 13px;
  line-height: 1.55;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-notice.d-none {
  display: none !important;
}

.login-notice::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(74, 89, 109, 0.38);
  border-radius: 50%;
  color: #4a596d;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.login-notice[data-kind="success"]::before {
  content: '✓';
  font-family: inherit;
}

.login-notice[data-kind="warning"]::before {
  content: '!';
  font-family: inherit;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #94a3b8;
}

.spinner-border {
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    transition: none;
  }
}

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

  .login-card {
    padding: 24px;
    border-radius: 24px;
  }

  .brand-logo img {
    width: min(240px, 78vw);
  }

  .login-brand h1 {
    font-size: 22px;
  }
}
