:root { --rojo: #B20F26; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: #1a1a1a; background: #f5f5f5; }
.topbar { background: var(--rojo); color: #fff; padding: 14px 22px; display: flex;
          justify-content: space-between; align-items: center; }
.topbar a { color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 40px; width: 40px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.login-logo { height: 110px; width: 110px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.15); margin-bottom: 6px; }
main { max-width: 960px; margin: 32px auto; padding: 0 20px; }
h1 { font-family: Georgia, serif; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: 12px; padding: 26px; text-decoration: none;
        color: inherit; box-shadow: 0 1px 4px rgba(0,0,0,.12); text-align: center;
        transition: transform .08s; }
.card:hover { transform: translateY(-3px); }
.card .icon { font-size: 40px; display: block; }
.card .name { margin-top: 10px; display: block; font-weight: 600; }
.login { text-align: center; margin-top: 80px; }
.btn-ms { display: inline-block; background: var(--rojo); color: #fff; padding: 12px 22px;
          border-radius: 8px; text-decoration: none; font-weight: 600; }
.adminnav { display: flex; gap: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--rojo); padding-bottom: 8px; }
.adminnav a { color: var(--rojo); text-decoration: none; font-weight: 600; }
.error { color: var(--rojo); font-weight: 600; }
.tag { background: #eee; border-radius: 6px; padding: 1px 6px; font-size: 11px; color: #555; }
.row { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.row input[type=text], .row input[type=email] { padding: 6px 8px; }
table { border-collapse: collapse; width: 100%; margin-top: 12px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3e3e3; }
.rolecard { background: #fff; border-radius: 10px; padding: 16px; margin: 14px 0; box-shadow: 0 1px 4px rgba(0,0,0,.10); }
button { background: var(--rojo); color: #fff; border: 0; border-radius: 6px; padding: 7px 12px; cursor: pointer; }
button.danger { background: #777; }
