/* static/staff/css/staff_login.css */

:root{
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --blue-soft:#dbeafe;
  --navy:#0f2747;
  --deep:#0b1730;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --bg:#eef5ff;
  --white:#ffffff;
  --shadow:0 24px 70px rgba(15,39,71,.13);
  --shadow-soft:0 12px 32px rgba(15,39,71,.08);
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
}

body{
  font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color:var(--text);
  background:#f4f8fc;
}

a{
  color:inherit;
  text-decoration:none;
}

.login-page{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(191,219,254,.55) 0, transparent 28%),
    radial-gradient(circle at 92% 86%, rgba(186,230,253,.70) 0, transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.back-link{
  position:fixed;
  top:24px;
  right:32px;
  z-index:20;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  border:1px solid #dbeafe;
  color:var(--blue);
  font-size:13px;
  font-weight:900;
  box-shadow:0 10px 28px rgba(37,99,235,.10);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  transition:transform .16s ease, box-shadow .16s ease;
}

.back-link:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(37,99,235,.16);
}

/* =========================
   Layout
========================= */

.login-main{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(420px, .9fr);
}

/* =========================
   Left / Brand Area
========================= */

.brand-side{
  min-height:100vh;
  padding:72px 72px 54px;
  color:#fff;
  background:
    radial-gradient(circle at 25% 18%, rgba(96,165,250,.36) 0, transparent 32%),
    radial-gradient(circle at 84% 78%, rgba(37,99,235,.20) 0, transparent 32%),
    linear-gradient(135deg, #0f2747 0%, #1d4ed8 100%);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.brand-side::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:44px 44px;
  opacity:.18;
}

.brand-side::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  left:-180px;
  bottom:-220px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 0 0 80px rgba(255,255,255,.035);
}

.brand-block,
.info-grid,
.brand-footer{
  position:relative;
  z-index:2;
}

.brand-kicker{
  display:inline-flex;
  width:max-content;
  padding:9px 16px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  color:#dbeafe;
  background:rgba(255,255,255,.10);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  margin-bottom:22px;
}

.brand-title{
  margin:0;
  color:#fff;
  font-size:78px;
  line-height:1;
  letter-spacing:.02em;
  font-weight:950;
}

.brand-lead{
  margin:24px 0 0;
  max-width:650px;
  color:#eaf2ff;
  font-size:15px;
  line-height:2;
  font-weight:700;
}

/* =========================
   Info Area
========================= */

.info-grid{
  width:min(760px, 100%);
  margin-top:46px;
  display:grid;
  gap:18px;
}

.info-card,
.mini-card{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 18px 44px rgba(0,0,0,.12);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

.info-card{
  border-radius:26px;
  padding:24px;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.section-head h2{
  margin:0;
  color:#fff;
  font-size:20px;
  font-weight:950;
}

.section-head span{
  color:#bfdbfe;
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
}

.news-list{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.news-item{
  display:grid;
  grid-template-columns:94px 48px 1fr;
  gap:10px;
  align-items:center;
  color:#eaf2ff;
  font-size:13px;
}

.news-item time{
  color:#bfdbfe;
  font-weight:800;
}

.news-label{
  display:inline-flex;
  justify-content:center;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:10px;
  font-weight:950;
}

.news-item p{
  margin:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.sub-card-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.mini-card{
  border-radius:24px;
  padding:20px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
}

.mini-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.20);
  color:#fff;
  font-size:18px;
  font-weight:950;
}

.mini-card h2{
  margin:0;
  color:#fff;
  font-size:16px;
  font-weight:950;
}

.mini-card p{
  margin:7px 0 12px;
  color:#dbeafe;
  font-size:12px;
  line-height:1.7;
}

.mini-card a{
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:4px;
}

.brand-footer{
  margin-top:44px;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  color:#dbeafe;
  font-size:12px;
}

.brand-footer a{
  color:#fff;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:4px;
}

/* =========================
   Right / Login
========================= */

.login-side{
  min-height:100vh;
  padding:72px 64px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-card{
  width:min(450px, 100%);
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.98);
  border-radius:34px;
  padding:34px;
  box-shadow:var(--shadow);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

.login-logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-mark{
  width:44px;
  height:44px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #2563eb, #38bdf8);
  color:#fff;
  font-size:18px;
  font-weight:950;
  box-shadow:0 10px 24px rgba(37,99,235,.24);
}

.logo-title{
  color:var(--navy);
  font-size:18px;
  font-weight:950;
  letter-spacing:.06em;
}

.logo-sub{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
}

.card-line{
  height:1px;
  background:#e5e7eb;
  margin:22px 0 24px;
}

.login-title{
  margin:0;
  color:var(--navy);
  font-size:26px;
  font-weight:950;
  letter-spacing:.02em;
}

.login-desc{
  margin:8px 0 22px;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
}

.messages{
  display:grid;
  gap:8px;
  margin-bottom:16px;
}

.msg{
  padding:11px 13px;
  border-radius:14px;
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
  font-size:13px;
  font-weight:700;
}

.form{
  display:block;
}

.label{
  display:block;
  margin:16px 0 7px;
  color:#64748b;
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
}

.input{
  width:100%;
  height:48px;
  border:1px solid #dbeafe;
  border-radius:15px;
  background:#f8fbff;
  padding:0 15px;
  color:#0f172a;
  font-size:15px;
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.input:focus{
  border-color:#93c5fd;
  background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.remember{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#64748b;
  font-size:12px;
  cursor:pointer;
  user-select:none;
}

.remember input{
  width:14px;
  height:14px;
  accent-color:var(--blue);
}

.agree-text{
  margin:16px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.8;
}

.agree-text a{
  color:var(--blue);
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
}

.btn{
  width:100%;
  height:52px;
  margin-top:18px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg, #0f2747, #2563eb);
  color:#fff;
  font-size:15px;
  font-weight:950;
  letter-spacing:.04em;
  cursor:pointer;
  box-shadow:0 14px 26px rgba(37,99,235,.24);
  transition:transform .16s ease, box-shadow .16s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(37,99,235,.30);
}

.login-help{
  display:block;
  margin-top:14px;
  color:var(--blue);
  font-size:12px;
  font-weight:900;
  text-align:center;
  text-decoration:underline;
  text-underline-offset:4px;
}

.security-note{
  margin-top:18px;
  padding:14px 15px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-size:12px;
  line-height:1.75;
}

.security-note strong{
  display:block;
  color:#334155;
  margin-bottom:4px;
}

.card-foot{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #e2e8f0;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#94a3b8;
  font-size:11px;
}

.empty-news{
  margin-top:16px;
  padding:18px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px dashed rgba(255,255,255,.28);
  color:#dbeafe;
  font-size:13px;
  font-weight:800;
}

.notice-admin-note{
  margin-top:10px;
  color:#bfdbfe;
  font-size:11px;
  line-height:1.7;
}

/* =========================
   Responsive
========================= */

@media (max-width:1100px){
  .login-main{
    grid-template-columns:1fr;
  }

  .brand-side,
  .login-side{
    min-height:auto;
  }

  .brand-side{
    padding:72px 36px 46px;
  }

  .login-side{
    padding:42px 24px 56px;
  }

  .brand-title{
    font-size:58px;
  }

  .info-grid{
    width:100%;
  }
}

@media (max-width:720px){
  .back-link{
    top:18px;
    right:18px;
    font-size:12px;
    padding:9px 14px;
  }

  .brand-side{
    padding:72px 20px 34px;
  }

  .brand-title{
    font-size:46px;
  }

  .brand-lead{
    font-size:13px;
  }

  .sub-card-row{
    grid-template-columns:1fr;
  }

  .news-item{
    grid-template-columns:1fr;
    gap:4px;
    align-items:start;
  }

  .news-item p{
    white-space:normal;
  }

  .brand-footer{
    gap:12px;
  }

  .login-side{
    padding:28px 16px 42px;
  }

  .login-card{
    border-radius:28px;
    padding:24px;
  }

  .card-foot{
    flex-direction:column;
  }
}