body{margin:0;background:#f4f9fb;color:#112027;font-family:Inter,Segoe UI,Arial,sans-serif}
.auth-wrap{width:min(1120px,calc(100% - 28px));margin:32px auto}
.auth-legal{margin:14px 0 0;text-align:center;font-size:12px;color:#8aa4b1}
.auth-legal a{color:#8aa4b1;text-decoration:none}
.auth-legal a:hover{color:#568399;text-decoration:underline}
.auth-card{background:#fff;border:1px solid #dbe8ef;border-radius:14px;box-shadow:0 18px 50px rgba(15,33,42,.08);padding:24px}
.auth-title{margin:0 0 8px;font-size:28px;font-weight:900}
.auth-muted{color:#568399;margin:0 0 18px}
.auth-form{display:grid;gap:12px;max-width:440px}
.auth-label{display:grid;gap:6px;font-weight:800}
.auth-input{height:42px;border:1px solid #cbdae1;border-radius:10px;padding:0 12px;font:inherit}
.password-field{position:relative}.password-field .auth-input{padding-right:48px;width:100%;box-sizing:border-box}.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px;height:30px;border:0;border-radius:8px;background:#eef4f7;color:#314a57;font-weight:900;cursor:pointer}
.auth-btn{height:42px;border:0;border-radius:10px;padding:0 14px;background:#0879b5;color:#fff;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.auth-btn.secondary{background:#e8f3f8;color:#112027}
.auth-btn.danger{background:#fee2e2;color:#991b1b}
.auth-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.auth-alert{padding:12px 14px;border-radius:10px;margin:0 0 14px;font-weight:800}
.auth-alert.ok{background:#dcf1fc;color:#164b65}.auth-alert.err{background:#fee2e2;color:#991b1b}
.auth-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.auth-nav a{color:#0879b5;font-weight:850;text-decoration:none}
.link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0 20px}.link-card{border:1px solid #dbe8ef;border-radius:12px;padding:12px;text-decoration:none;color:#112027;background:#f8fbfc}.link-card b{display:block}.link-card small{color:#568399}
table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:10px;border-bottom:1px solid #e2ebf0;text-align:left;vertical-align:top}th{background:#f8fbfc;color:#3f6071;font-size:12px;text-transform:uppercase}
.pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;background:#eff9fe;color:#307da3}.pill.pending{background:#fff7ed;color:#9a3412}.pill.active{background:#dcf1fc;color:#164b65}.pill.deleted{background:#fee2e2;color:#991b1b}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat{background:#fff;border:1px solid #dbe8ef;border-radius:12px;padding:16px}.stat b{font-size:24px}
pre.logbox{white-space:pre-wrap;word-break:break-word;background:#0f212a;color:#e2ebf0;border-radius:12px;padding:14px;max-height:460px;overflow:auto}
.server-log-table{margin-top:14px;max-height:620px;overflow:auto;border:1px solid #dbe8ef;border-radius:12px}.server-log-table table{min-width:1080px}.server-log-table th{position:sticky;top:0;z-index:1}.server-log-table small{color:#568399;word-break:break-word}.status-code{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:900;background:#eef4f7;color:#314a57;white-space:nowrap}.status-2{background:#dcf1fc;color:#164b65}.status-3{background:#e0f4fe;color:#075b85}.status-4{background:#fff7ed;color:#9a3412}.status-5{background:#fee2e2;color:#991b1b}
.auth-modal-overlay{position:fixed;inset:0;z-index:50;background:rgba(15,33,42,.52);display:flex;align-items:center;justify-content:center;padding:24px}
.auth-modal{width:min(1100px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:hidden;background:#fff;border-radius:14px;border:1px solid #dbe8ef;box-shadow:0 24px 70px rgba(15,33,42,.25);display:flex;flex-direction:column}
.auth-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e2ebf0;background:#f8fbfc}.auth-modal-head h3{margin:0;font-size:22px}.auth-modal-head p{margin:6px 0 0;color:#568399}
.auth-modal-close{width:38px;height:38px;border-radius:10px;background:#e8f3f8;color:#112027;text-decoration:none;font-size:28px;line-height:34px;text-align:center;font-weight:900}
.auth-modal-table{overflow:auto;padding:0 20px 20px}.auth-modal-table table{min-width:0}.auth-modal-table th{position:sticky;top:0}.auth-modal-table .activity-time{width:150px;white-space:nowrap;color:#3f6071}.auth-modal-table .log-summary{max-width:none;white-space:normal;line-height:1.35;font-weight:750}.log-summary{max-width:260px;white-space:normal;line-height:1.35;font-weight:750}
@media(max-width:800px){.grid{grid-template-columns:1fr}table{font-size:13px}.auth-card{padding:16px}}
