/* Netraga Accounts — same look as the Netraga webmail / my.corp.netraga.com sign-in pages */
:root { --primary:#2563eb; --primary-d:#1d4ed8; --navy:#0F172A; --cyan:#07CBE3; --ink:#0f172a; --muted:#64748b; --line:#e2e8f0;
  --font:"Plus Jakarta Sans","Segoe UI",Roboto,Helvetica,Arial,sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--ink); background: radial-gradient(1100px 560px at 12% -8%, #ceddff 0%, transparent 60%),
  radial-gradient(900px 520px at 108% 108%, #dff9fc 0%, transparent 55%), #f6f8ff; background-attachment: fixed; }
.hidden { display: none !important; }
a { color: var(--primary); font-weight: 600; text-decoration: none; } a:hover { text-decoration: underline; }

/* ---------- sign in ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6vh 16px 24px; }
.card { width: 100%; max-width: 920px; min-height: 440px; display: flex; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px -20px rgba(15,23,42,.35), 0 2px 8px rgba(30,58,138,.08); }
.brandpanel { flex: 0 0 44%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 28px; color: #fff; text-align: center;
  background: radial-gradient(420px 260px at 0% 0%, rgba(7,203,227,.18), transparent 70%), linear-gradient(135deg, #0F172A 0%, #172554 45%, #1d4ed8 100%); }
.brandpanel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #07CBE3, #2563eb); }
.mark { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 12px 30px -8px rgba(7,203,227,.45); }
.title { margin-top: 18px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.title span { font-weight: 600; color: #7dd3fc; }
.sub { margin: 6px 0 0; color: rgba(226,232,240,.85); font-size: 14px; }
.formpanel { flex: 1; display: flex; align-items: center; padding: 44px 48px; }
.formpanel form { width: 100%; max-width: 380px; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
input { width: 100%; font: 500 15px var(--font); color: var(--ink); padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; outline: none; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
#code { font-size: 26px; letter-spacing: 12px; text-align: center; font-weight: 700; padding: 10px; }
button { font: 600 15px var(--font); color: #fff; border: 0; border-radius: 10px; padding: 11px 26px; margin-top: 16px; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 8px 18px -8px rgba(37,99,235,.65); }
button:hover { background: var(--primary-d); } button:disabled { opacity: .55; cursor: default; box-shadow: none; }
button.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line); padding: 7px 14px; margin: 0; font-size: 14px; }
button.ghost:hover { background: #f1f5f9; }
.msg { min-height: 20px; font-size: 14px; margin: 12px 0 0; color: var(--muted); }
.msg.err { color: #b91c1c; } .msg.ok { color: #047857; }
.links { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0 8px; padding: 0 16px; }

/* ---------- mailboxes ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(15,23,42,.96); color: #fff; box-shadow: inset 0 -2px 0 0 rgba(7,203,227,.55); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; } .logo b { color: #7dd3fc; font-weight: 700; }
.logo img { border-radius: 8px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #cbd5e1; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .ghost { color: #fff; border-color: rgba(255,255,255,.25); } .who .ghost:hover { background: rgba(255,255,255,.08); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 16px 8px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.intro h1 { margin-bottom: 4px; } .intro .hint { margin: 0; }
#search { max-width: 300px; }
.banner { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.brand { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.brand-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brand-h img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand-h .bn { font-size: 18px; font-weight: 700; } .brand-h .bd { font-size: 13px; color: var(--muted); }
.brand-h .bw { margin-left: auto; font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  font-weight: 500; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.tile:hover { text-decoration: none; border-color: #93c5fd; box-shadow: 0 6px 16px -8px rgba(37,99,235,.45); transform: translateY(-1px); }
.tile .info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.tile .ad { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #475569; }
.tile .ad b { color: var(--ink); font-weight: 700; }
.badge { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; }
.badge.personal { background: #e0ecff; color: #1d4ed8; } .badge.shared { background: #e6fbfd; color: #0e7490; }
.count { flex: none; min-width: 26px; text-align: center; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.count.has { background: #2563eb; color: #fff; }
.arrow { flex: none; color: #94a3b8; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

@media (max-width: 720px) {
  .page { justify-content: flex-start; padding: 16px; }
  .card { flex-direction: column; min-height: 0; }
  .brandpanel { flex: none; padding: 28px 16px 22px; } .mark { width: 64px; height: 64px; border-radius: 16px; }
  .title { font-size: 26px; margin-top: 12px; } .sub { display: none; }
  .formpanel { padding: 26px 22px 30px; }
  .intro { align-items: stretch; } #search { max-width: none; }
  .who #who { display: none; }
  .brand { padding: 14px; } .brand-h .bw { display: none; }
  .grid { grid-template-columns: 1fr; }
}
