:root{
  --bg1: #0f172a;          /* slate-900 */
  --bg2: #111827;          /* gray-900 */
  --card: rgba(255,255,255,0.92);
  --card2: rgba(255,255,255,0.72);
  --text: #0b1220;

  --muted: #64748b;        /* slate-500 */
  --border: rgba(15, 23, 42, 0.12);

  --orange: #f97316;       /* orange-500 */
  --orange2:#fb923c;       /* orange-400 */
  --yellow: #facc15;       /* yellow-400 */
  --yellow2:#fde047;       /* yellow-300 */

  --danger: #b91c1c;
  --dangerBg: rgba(185, 28, 28, 0.10);

  --success: #065f46;
  --successBg: rgba(6, 95, 70, 0.10);

  --shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
  --shadow2: 0 10px 25px rgba(2, 6, 23, 0.18);

  --radius: 18px;
  --radius2: 12px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 700px at 20% 10%, rgba(250, 204, 21, 0.10), transparent 55%),
              radial-gradient(900px 600px at 90% 20%, rgba(249, 115, 22, 0.12), transparent 50%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
}

.bg{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo{
  height: 46px;
  width: auto;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
  border-radius: 0; /* restore square logo */
} 
.brand-text{ line-height: 1.05; }
.brand-title{
  color: rgba(255,255,255,0.95);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 16px;
}
.brand-subtitle{
  color: rgba(255,255,255,0.70);
  font-weight: 600;
  font-size: 13px;
}

.topbar-meta .pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}

.wrap{
  max-width: 1100px;
  width: 100%;
  margin: 10px auto 0;
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.card{
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.88));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header{
  padding: 22px 22px 6px;
}
.card-header h1{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.card-header p{
  margin: 8px 0 0;
  color: #334155;
  font-size: 14px;
}

.form{
  padding: 10px 22px 22px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

/* Role selection box (styled chips) */
.role-box label{ font-size:13px; font-weight:700; color:#0b1220; }
.role-options{ display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; }
.role-option{ display:inline-flex; }
.role-option input{ display:none; }
.role-option span{
  padding:8px 12px;
  border-radius:12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  font-weight:700;
  color:#0b1220;
  cursor:pointer;
}
.role-option input:checked + span{
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: #111827;
  box-shadow: 0 8px 20px rgba(2,6,23,0.12);
  border-color: transparent;
}
label{
  font-size: 13px;
  font-weight: 700;
  color: #0b1220;
}
input[type="text"], input[type="password"]{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  font-size: 14px;
}
input:focus{
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.password-wrap{
  display: flex;
  gap: 10px;
  align-items: center;
}
.password-wrap input{ flex: 1; }

.ghost-btn{
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.72);
  color: #0b1220;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.ghost-btn:hover{
  background: rgba(255,255,255,0.9);
}
.ghost-btn:active{ transform: translateY(1px); }

.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}

.checkbox{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  user-select: none;
}
.checkbox input{ transform: translateY(1px); }

.link{
  font-size: 13px;
  font-weight: 700;
  color: #0b1220;
  text-decoration: none;
  position: relative;
}
.link:after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.link:hover:after{ transform: scaleX(1); }

.btn-primary{
  margin-top: 16px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #111827;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  box-shadow: var(--shadow2);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn-primary:hover{ filter: brightness(1.02); }
.btn-primary:active{ transform: translateY(1px); }

.divider{
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.divider:before, .divider:after{
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(15, 23, 42, 0.12);
}

.quick-links{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.75);
  color: #0b1220;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn-secondary:hover{ background: rgba(255,255,255,0.92); }
.btn-secondary:active{ transform: translateY(1px); }

.card-footer{
  margin-top: 16px;
  color: #334155;
  opacity: 0.95;
  font-size: 12px;
}

.alert{
  margin: 12px 22px 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
.alert-danger{
  color: var(--danger);
  background: var(--dangerBg);
  border-color: rgba(185, 28, 28, 0.25);
}
.alert-success{
  color: var(--success);
  background: var(--successBg);
  border-color: rgba(6, 95, 70, 0.25);
}

.side{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.92);
  padding: 18px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.side-card.subtle{
  background: rgba(255,255,255,0.06);
}
.side-card h2{
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.side-card ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.80);
  font-size: 13px;
  line-height: 1.7;
}

.footer{
  margin-top: auto;
  padding: 18px 22px 24px;
  text-align: center;
  color: rgba(255,255,255,0.70);
  font-size: 12px;
}

@media (max-width: 920px){
  .wrap{
    grid-template-columns: 1fr;
  }
  .topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .quick-links{
    grid-template-columns: 1fr;
  }
}
