/* ===== CloudLab · estilos compartidos ===== */
:root{
  --ink:#0f1b2d; --ink2:#16232f; --squid:#232f3e; --squid2:#1b2531;
  --orange:#ff9900; --orange2:#ec7211; --blue:#0972d3; --blue2:#033160;
  --bg:#f4f6f8; --panel:#ffffff; --line:#e3e8ee; --soft:#f6f8fa;
  --text:#0f1b2d; --muted:#5f6b7a; --green:#037f51; --greenbg:#eafaf1;
  --red:#d13212; --redbg:#fdf3f1;
  --font:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{ box-sizing:border-box; margin:0; padding:0; font-family:var(--font); }
body{ background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased; }
a{ color:var(--blue); text-decoration:none; }
svg.ic{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; flex:0 0 auto; }

/* ===== LOGIN (split screen) ===== */
.auth{ min-height:100vh; display:grid; grid-template-columns:1.05fr 1fr; }
.auth .brand{ background:linear-gradient(160deg,#0f1b2d 0%, #16232f 55%, #0a2540 100%);
  color:#fff; padding:56px 60px; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.auth .brand::after{ content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px;
  background:radial-gradient(closest-side, rgba(255,153,0,.22), transparent); }
.auth .brand .logo{ display:flex; align-items:center; gap:12px; font-size:22px; font-weight:800; letter-spacing:-.02em; }
.auth .brand .logo b{ color:var(--orange); }
.auth .brand .logo .mark{ width:40px; height:40px; border-radius:10px; background:var(--orange);
  display:flex; align-items:center; justify-content:center; color:#16232f; }
.auth .brand h1{ font-size:38px; font-weight:700; letter-spacing:-.02em; margin-top:auto; line-height:1.15; }
.auth .brand p{ color:#aebfce; font-size:16px; margin-top:14px; max-width:440px; line-height:1.55; }
.auth .brand .feat{ display:flex; gap:10px; align-items:center; color:#cdd9e5; font-size:14px; margin-top:14px; }
.auth .brand .feat svg{ color:var(--orange); }
.auth .brand .foot{ margin-top:40px; color:#6b7c8e; font-size:12.5px; }

.auth .panel{ background:#fff; display:flex; align-items:center; justify-content:center; padding:40px; }
.auth .card{ width:100%; max-width:400px; }
.auth .card h2{ font-size:26px; font-weight:700; }
.auth .card .sub{ color:var(--muted); font-size:14px; margin:6px 0 26px; }
label{ display:block; font-size:13px; font-weight:600; margin:16px 0 6px; color:#2b3947; }
.field{ position:relative; }
.field svg{ position:absolute; left:13px; top:50%; transform:translateY(-50%); color:#93a1b0; width:18px; height:18px; }
input{ width:100%; padding:13px 14px 13px 42px; border:1px solid var(--line); border-radius:10px; font-size:15px; background:#fff; outline:none; transition:border .15s, box-shadow .15s; }
input:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(9,114,211,.12); }
input.plain{ padding-left:14px; }
.btn{ width:100%; padding:13px; border:none; border-radius:10px; font-size:15px; font-weight:700; cursor:pointer;
  background:var(--orange); color:#16232f; margin-top:22px; transition:background .15s, transform .05s; display:flex; align-items:center; justify-content:center; gap:8px; }
.btn:hover{ background:var(--orange2); } .btn:active{ transform:translateY(1px); }
.btn.blue{ background:var(--blue); color:#fff; } .btn.blue:hover{ background:#0861b8; }
.btn.ghost{ background:#fff; border:1px solid var(--line); color:var(--text); }
.btn:disabled{ opacity:.6; cursor:not-allowed; }
.msg{ margin-top:16px; font-size:14px; min-height:20px; display:flex; align-items:center; gap:8px; }
.msg.err{ color:var(--red); } .msg.ok{ color:var(--green); }

/* ===== APP shell (admin) ===== */
.appbar{ background:var(--squid); color:#fff; height:56px; display:flex; align-items:center; padding:0 20px; gap:14px; }
.appbar .logo{ font-weight:800; font-size:17px; } .appbar .logo b{ color:var(--orange); }
.appbar .who{ margin-left:auto; display:flex; align-items:center; gap:12px; font-size:13px; color:#cdd9e5; }
.appbar .who .avatar{ width:30px; height:30px; border-radius:50%; background:var(--orange); color:#16232f;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; }
.appbar .who a{ color:#cdd9e5; }
.container{ max-width:1000px; margin:0 auto; padding:28px 22px 60px; }
.page-h{ display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.page-h h1{ font-size:26px; } .page-h p{ color:var(--muted); font-size:14px; margin-top:4px; }
.card2{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px; margin-bottom:18px; box-shadow:0 1px 2px rgba(16,25,45,.04); }
.card2 h3{ font-size:16px; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.grid2{ display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:10px; align-items:end; }
.grid2 .full{ grid-column:1/-1; }
table{ width:100%; border-collapse:collapse; }
th,td{ text-align:left; padding:12px 12px; border-bottom:1px solid var(--line); font-size:14px; }
th{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.tag{ display:inline-block; font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; }
.tag.prof{ background:#fff3e0; color:#b25e00; } .tag.al{ background:#e8f1fb; color:#0972d3; }
.del{ background:#fff; border:1px solid #f3c2c7; color:var(--red); border-radius:8px; padding:7px 12px; font-size:13px; font-weight:600; cursor:pointer; display:inline-flex; gap:6px; align-items:center; }
.del:hover{ background:var(--redbg); }
.count{ color:var(--muted); font-size:13px; }
.empty{ text-align:center; color:var(--muted); padding:26px; font-size:14px; }
@media(max-width:820px){ .auth{ grid-template-columns:1fr; } .auth .brand{ display:none; } .grid2{ grid-template-columns:1fr; } }
