.sc-container{max-width:900px;margin:1.5em auto}
.sc-form{max-width:420px;background:#fff;border:1px solid #d0d7de;border-radius:12px;padding:20px 24px;box-sizing:border-box}
.sc-form h3{margin-top:0}
.sc-form label{display:block;font-weight:600;margin-bottom:4px}
.sc-form input[type=text],.sc-form input[type=password],.sc-form input[type=date]{width:100%;box-sizing:border-box;padding:10px 12px;font-size:16px;border:1px solid #b6bec6;border-radius:8px}
.sc-error{background:#fde8e8;color:#8a1f1f;border:1px solid #f3b4b4;padding:10px 14px;border-radius:8px;margin:0 0 14px}
.sc-btn{display:inline-block;cursor:pointer;border:0;border-radius:8px;padding:12px 22px;font-size:16px;font-weight:700;background:#0b5394;color:#fff}
.sc-btn:hover{opacity:.92}
.sc-btn[disabled]{opacity:.6;cursor:wait}
.sc-btn-sec{background:#fff;color:#0b5394;border:2px solid #0b5394;padding:10px 20px}
.sc-actions{margin-top:16px;display:flex;gap:12px;flex-wrap:wrap}
.sc-msg{min-height:1.4em;color:#57606a;font-size:14px}
.sc-logout{font-size:14px}

/* Credencial: tamaño fijo 856x540 (proporción tarjeta CR80), se escala en pantalla con JS */
.sc-scale{width:100%;overflow:hidden;position:relative}
.sc-card{width:856px;height:540px;position:relative;box-sizing:border-box;background:#fff;border:2px solid #d0d7de;border-radius:28px;overflow:hidden;transform-origin:top left;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1d2327;line-height:1.25}
.sc-head{height:120px;background:var(--sc,#0b5394);color:#fff;display:flex;align-items:center;gap:24px;padding:0 36px;box-sizing:border-box}
.sc-head img{height:84px;width:auto;max-width:170px;object-fit:contain;flex:none}
.sc-org{flex:1;font-size:28px;font-weight:700;line-height:1.15;text-transform:uppercase}
.sc-title{flex:none;max-width:190px;font-size:18px;font-weight:600;letter-spacing:2px;text-align:right;opacity:.92;line-height:1.25}
.sc-body{display:flex;gap:32px;padding:32px 36px 0;box-sizing:border-box}
.sc-photo{flex:none;width:190px;height:240px;border-radius:14px;overflow:hidden;background:#eef1f4;border:3px solid var(--sc,#0b5394);display:flex;align-items:center;justify-content:center;font-size:72px;font-weight:700;color:var(--sc,#0b5394);box-sizing:border-box}
.sc-photo img{width:100%;height:100%;object-fit:cover;display:block}
.sc-data{flex:1;min-width:0}
.sc-name{font-size:30px;font-weight:800;line-height:1.1;margin:0 0 16px;text-transform:uppercase;word-break:break-word}
.sc-data dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:20px}
.sc-data dt{color:#57606a;margin:0}
.sc-data dd{margin:0;font-weight:600}
.sc-qrbox{flex:none;width:150px;text-align:center}
.sc-qr img{width:150px;height:150px;display:block}
.sc-qrbox small{display:block;margin-top:6px;font-size:14px;color:#57606a}
.sc-foot{position:absolute;left:0;right:0;bottom:0;height:76px;background:#f3f5f7;border-top:3px solid var(--sc,#0b5394);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0 24px;box-sizing:border-box;font-size:19px;line-height:1.3;color:#3d444d;text-align:center}
