:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.78);
  --card-border: rgba(255,255,255,0.35);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.65);
  --primary1: #2563eb;
  --primary2: #4f46e5;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.20);
}

* { box-sizing: border-box; }

.login-body{
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 30% 10%, rgba(37,99,235,0.25), transparent 60%),
              radial-gradient(900px 600px at 80% 25%, rgba(124,58,237,0.22), transparent 62%),
              radial-gradient(700px 500px at 50% 85%, rgba(34,197,94,0.14), transparent 60%),
              linear-gradient(180deg, #0b1220, #0b1220);
  color: var(--text);
  overflow-x: hidden;
}

.bg-blobs{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.9;
}

.blob{
  position: absolute;
  border-radius: 999px;
  transform: translateZ(0);
}

.blob-1{
  width: 520px;
  height: 520px;
  left: -140px;
  top: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.80), rgba(79,70,229,0.20));
}

.blob-2{
  width: 560px;
  height: 560px;
  right: -180px;
  top: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,0.75), rgba(37,99,235,0.18));
}

.blob-3{
  width: 520px;
  height: 520px;
  left: 22%;
  bottom: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,0.55), rgba(16,185,129,0.12));
}

.login-container{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 12px;
}

.login-shell{
  width: min(520px, 96vw);
}

.login-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 34px 34px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 200px;
  height: 72px;

  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}



.brand-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.95), rgba(124,58,237,0.92));
}

.brand-fallback span {
  font-size: 1.6rem;
  font-weight: 900;
}

.brand-text .brand-name{
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text .brand-sub{
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 2px;
}

.login-head h1{
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.muted{
  color: var(--muted);
}

.form-label{
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.82);
}

.form-control{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: none !important;
}

.form-control:focus{
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.18) !important;
}

.password-wrap{
  position: relative;
}

.pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.75);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.pw-toggle:hover{
  background: rgba(15,23,42,0.09);
}

.btn-primary{
  background: linear-gradient(135deg, var(--primary1), var(--primary2));
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37,99,235,0.28);
  opacity: 0.98;
}

.login-footer{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.dot{
  opacity: 0.45;
}

@media (max-width: 420px){
  .login-card{
    padding: 26px 20px 22px;
  }
  .brand-logo{
    width: 58px;
    height: 58px;
  }
}
