:root{
  --brand:#2c5aa0;
  --brand-600:#1e3d6f;
  --accent:#5aa6ff;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f7f9fc;
  --card:#ffffff;
  --danger:#e74c3c;
  --ok:#28a745;
  --radius:16px;
  --shadow-lg:0 30px 60px rgba(31,41,55,.16), 0 12px 24px rgba(31,41,55,.08);
  --shadow-md:0 16px 32px rgba(31,41,55,.12), 0 6px 14px rgba(31,41,55,.06);
  --focus: 0 0 0 4px rgba(44,90,160,.18), 0 0 0 1px var(--brand);
}
*,*::before,*::after{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background: radial-gradient(1200px 1200px at 120% -10%, #e7f1ff 20%, transparent 60%),
              radial-gradient(1000px 1000px at -10% 120%, #eef6ff 10%, transparent 60%),
              var(--bg);
  display:grid;
  place-items:center;
  padding: 32px 16px;
  overflow-x: hidden;
}
.bubbles{
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  overflow:hidden;
}
.bubble{
  position:absolute; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0 15%, #cfe5ff 30%, #8cc4ff 60%, #7fb5ff 70%, #2c5aa0 100%);
  filter: blur(0.2px) saturate(1.05);
  opacity:.18; animation: float 18s ease-in-out infinite;
}
.bubble:nth-child(1){ width:220px; height:220px; left:-60px; top:-40px; animation-duration:24s; }
.bubble:nth-child(2){ width:140px; height:140px; right:8%; top:8%; animation-duration:20s; }
.bubble:nth-child(3){ width:320px; height:320px; right:-80px; bottom:-60px; animation-duration:28s; }
.bubble:nth-child(4){ width:110px; height:110px; left:12%; bottom:10%; animation-duration:22s; }
@keyframes float{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-14px) }
}
.wrap{
  width:100%;
  max-width: 560px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px){
  .wrap{ grid-template-columns: 1fr; gap:20px; max-width: 560px; }
}
.brand-pane{
  background: linear-gradient(135deg, #dfeeff 0%, #f2f8ff 60%, #ffffff 100%);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display:flex; flex-direction:column; gap:18px;
}
.logo{ display:flex; align-items:center; gap:10px; }
.logo .mark{
  width:42px; height:42px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #bfe0ff 35%, #7db0ff 60%, #2c5aa0 100%);
  box-shadow: inset 0 2px 6px rgba(255,255,255,.6), 0 4px 12px rgba(44,90,160,.25);
}
.brand-title{ font-size:1.1rem; font-weight:700; letter-spacing:.2px; color:var(--brand-600); }
.brand-pane h1{
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
  line-height:1.15; margin: 8px 0; color: var(--brand-600);
}
.brand-pane p{ color:var(--muted); line-height:1.6; }
.bullet-row{
  display:grid; grid-template-columns: 1fr 1fr; gap:12px 18px; margin-top:8px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid #e6eefb; border-radius:999px;
  padding:8px 12px; font-size:.88rem; color:#28518f; background:#f7fbff;
  white-space:nowrap;
}
.pill::before{
  content:""; width:8px; height:8px; border-radius:50%; background:var(--brand);
  box-shadow:0 0 0 3px rgba(44,90,160,.15);
}
.card{
  background: var(--card);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px;
  border: 1px solid var(--line);
}
.card h2{ margin:0 0 6px; font-size:1.25rem; letter-spacing:.2px; color:var(--ink); }
.card p.sub{ margin:0 0 18px; color:var(--muted); font-size:.95rem; }
.form-group{ margin: 14px 0 16px }
label{ display:block; font-weight:600; color:var(--ink); margin: 0 0 6px; }
.field{ position:relative; }
input[type="password"], input[type="text"]{
  width:100%; padding: 14px 44px 14px 14px;
  border:2px solid #e6ebf3; border-radius:10px; font-size:1rem;
  transition:border-color .18s, box-shadow .18s, transform .06s;
  background:#fbfdff;
}
input:focus{ border-color:var(--brand); box-shadow: var(--focus) }
.toggle{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; cursor:pointer; padding:6px 8px; border-radius:8px;
  color:#3c4f75; font-size:.88rem;
}
.toggle:focus{ outline:none; box-shadow: var(--focus) }
.btn{
  width:100%; appearance:none;
  border:0; border-radius:12px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color:#fff; font-weight:700; letter-spacing:.2px; font-size:1rem;
  padding: 14px 16px; cursor:pointer;
  box-shadow: 0 10px 18px rgba(44,90,160,.25), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .06s ease, filter .2s ease;
}
.btn:hover{ filter: brightness(1.03) }
.btn:active{ transform: translateY(1px) }
.btn[disabled]{ opacity:.7; cursor:progress }
.row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 8px 0 0; }
.hint{ color:var(--muted); font-size:.9rem }
.link{ color:var(--brand-600); text-decoration:none; font-weight:600 }
.link:hover{ text-decoration:underline }
.alert{
  display:none; margin: 8px 0 0; padding: 10px 12px;
  border-radius:10px; background:#fff5f5; color:#a5271e; border:1px solid #ffd7d7;
  font-size:.95rem;
}
.alert.show{ display:block; animation: pop .14s ease }
@keyframes pop{ from{ transform:scale(.98); opacity:.5 } to{ transform:scale(1); opacity:1 } }
.success{ display:none; margin-top:10px; color:var(--ok); font-weight:600 }
footer{ margin-top:14px; text-align:center; color:var(--muted); font-size:.85rem }
