/*
Theme Name: Portal Gateway Theme
Theme URI: https://example.invalid/
Author: Portal Gateway
Version: 1.0.8
Description: Minimal responsive login/403/404 pages for Portal Gateway.
*/
:root{
  --bg1:#0b1220;
  --bg2:#06101a;
  --card:#0f1b2a;
  --text:#eaf1ff;
  --muted:#b6c3da;
  --accent:#4ea1ff;
  --border:rgba(255,255,255,0.08);
  --shadow: 0 10px 40px rgba(0,0,0,0.55);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, #1b3a6b 0%, var(--bg1) 40%, var(--bg2) 100%);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.pg-wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.pg-card{
  width: min(560px, 100%);
  background: rgba(15,27,42,0.82);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:28px;
  backdrop-filter: blur(12px);
}
.pg-title{
  font-size:32px;
  margin:0 0 8px 0;
  letter-spacing:0.02em;
}
.pg-sub{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:14px;
}
.pg-form label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin:12px 0 6px;
}
.pg-form input[type="text"],
.pg-form input[type="password"]{
  width:100%;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color:var(--text);
  outline:none;
}
.pg-form input:focus{
  border-color: rgba(78,161,255,0.7);
  box-shadow: 0 0 0 3px rgba(78,161,255,0.15);
}
.pg-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}
.pg-btn{
  appearance:none;
  border:none;
  border-radius:10px;
  padding:12px 16px;
  background: linear-gradient(135deg, rgba(78,161,255,0.95), rgba(78,161,255,0.65));
  color:#02101f;
  font-weight:700;
  cursor:pointer;
  width: 160px;
  text-align:center;
}
.pg-btn:hover{filter:brightness(1.05)}
.pg-note{font-size:12px; color:var(--muted); margin-top:14px; line-height:1.5}
.pg-links{margin-top:16px; display:flex; gap:14px; flex-wrap:wrap}
.pg-code{font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:12px; color:var(--muted)}
@media (max-width:420px){
  .pg-card{padding:20px}
  .pg-title{font-size:28px}
  .pg-row{flex-direction:column; align-items:stretch}
  .pg-btn{width:100%}
}

.pg-error{
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,80,80,0.35);
  background: rgba(255,80,80,0.10);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}