:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 18px 40px rgba(2, 6, 23, .10);

  --primary: #2563eb;
  --primary2: #1d4ed8;
  --danger: #ef4444;

  --radius: 18px;
  --radius-sm: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(37,99,235,.14), transparent 55%),
    radial-gradient(900px 450px at 90% 0%, rgba(14,165,233,.12), transparent 50%),
    var(--bg);
}

/* Top bar */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 251, .75);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand__logo{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius: 12px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow: 0 8px 18px rgba(2,6,23,.08);
  padding:6px;
}

.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.brand__text strong{
  font-size:14px;
  letter-spacing:.2px;
}
.brand__text span{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 60vw;
}

/* Page layout */
.page{
  width:min(520px, 92vw);
  margin:0 auto;
  padding:22px 0 28px;
  display:grid;
  gap:14px;
}

.card{
  background: rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

.card__head{
  margin-bottom: 10px;
}
.card__head h1{
  margin:0;
  font-size:22px;
  letter-spacing:.2px;
}
.card__head p{
  margin:6px 0 0;
  color: var(--muted);
  font-size:13px;
}

/* Form */
.form{ display:grid; gap:12px; }

.field{ display:grid; gap:8px; }
.field__label{
  font-size:13px;
  color: rgba(15,23,42,.82);
  display:flex;
  gap:8px;
  align-items:center;
}
.field__label i{ color: var(--primary2); }

.field__control{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  background:#fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

input{
  width:100%;
  border:0;
  outline:none;
  font-size:15px;
  color: var(--text);
  background:transparent;
}
input::placeholder{ color: #94a3b8; }

.field__control:focus-within{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Buttons */
.btn{
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  padding:12px 14px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
  cursor:pointer;
  user-select:none;
  transition: transform .05s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-color: rgba(37,99,235,.35);
  color:#fff;
  box-shadow: 0 14px 28px rgba(37,99,235,.18);
}

.btn--primary:hover{
  box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

.btn--ghost{
  background: rgba(255,255,255,.7);
}

.btn--block{
  width:100%;
}

/* Alerts */
.alert{
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  border:1px solid var(--border);
}
.alert--danger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.25);
  color: #991b1b;
}

/* Meta */
.meta{
  display:grid;
  gap:8px;
  padding-top: 4px;
}
.meta__item{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color: var(--muted);
}
.meta__item i{ color: rgba(37,99,235,.9); }

/* Footer */
.foot{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:12px;
  color: var(--muted);
  padding: 4px 2px;
}

/* Desktop polish */
@media (min-width: 720px){
  .page{ padding: 36px 0 36px; }
  .card{ padding: 22px; }
  .card__head h1{ font-size:24px; }
}
