@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');
:root { font-family: 'Noto Sans JP', system-ui, sans-serif; color: #f6f1ee; background: #10151e; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: #ffc7d2; }
:focus-visible { outline: 2px solid #ffbfca; outline-offset: 3px; }
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); background: radial-gradient(circle at 80% 5%, #292636, transparent 40%), #10151e; }
.auth-showcase { min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; background: linear-gradient(135deg, #473445 0%, #2b2b3d 54%, #1a2c39 100%); border-right: 1px solid #ffffff1e; }
.auth-showcase::before { content: ''; position: absolute; width: 700px; height: 700px; border: 1px solid #e9c0cd30; border-radius: 50%; top: -370px; left: -230px; box-shadow: 0 0 0 85px #e9c0cd0b, 0 0 0 185px #e9c0cd08; }
.auth-showcase::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 57%, #ffffff07 57.1%, transparent 57.3%); }
.showcase-inner { position: relative; z-index: 1; width: min(530px, 75%); padding: 40px 0; }
.showcase-label { color: #ffd6df; font-size: 11px; font-weight: 800; letter-spacing: .25em; }
.showcase-inner strong { display: block; margin-top: 25px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.4; letter-spacing: -.07em; }
.showcase-inner p { color: #d4d2da; font-size: 14px; line-height: 1.8; }
.showcase-art { width: min(450px, 100%); height: 285px; margin-top: 45px; position: relative; }
.showcase-art i { position: absolute; bottom: 0; display: block; width: 155px; height: 230px; border: 1px solid #ffffff67; border-radius: 10px 18px 4px 4px; box-shadow: -18px 22px 45px #09081388, inset 13px 0 20px #ffffff17; }
.showcase-art i::before { content: ''; position: absolute; left: 22px; top: 30px; width: 70%; height: 1px; background: #ffffff9a; box-shadow: 0 11px #ffffff68, 0 22px #ffffff43; }
.showcase-art i::after { content: 'M'; position: absolute; left: 22px; bottom: 20px; font: 92px Georgia, serif; color: #ffffff4d; }
.showcase-art i:nth-child(1) { left: 25px; height: 215px; transform: rotate(-17deg); background: linear-gradient(130deg, #5c607c, #27374a); }
.showcase-art i:nth-child(2) { left: 142px; height: 260px; transform: rotate(-4deg); background: linear-gradient(130deg, #da9daa, #7f4e6b); }
.showcase-art i:nth-child(3) { left: 257px; height: 225px; transform: rotate(14deg); background: linear-gradient(130deg, #7b777f, #383143); }
.auth-card { width: min(475px, calc(100% - 80px)); align-self: center; justify-self: center; padding: 40px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.055em; }
.brand > span:last-child { color: #f5a3b5; margin-left: -8px; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; margin-right: 6px; border-radius: 12px; background: linear-gradient(135deg, #f2b0ba, #d06986); color: #37212e; font: bold 23px Georgia, serif; letter-spacing: 0; box-shadow: 0 8px 25px #db688442; }
.auth-card h1 { margin: 85px 0 12px; font-size: clamp(30px, 3vw, 40px); line-height: 1.3; letter-spacing: -.07em; }
.auth-card p { color: #b5b9c3; font-size: 14px; line-height: 1.8; }
.auth-card form { display: grid; gap: 12px; margin-top: 32px; }
label { display: block; color: #d3d5dd; font-size: 12px; font-weight: 700; }
input { width: 100%; min-width: 0; padding: 14px 15px; border: 1px solid #505765; border-radius: 11px; background: #202735; color: #fff; outline: 0; }
input:focus { border-color: #ef9caf; box-shadow: 0 0 0 3px #ed9aaf22; }
button { min-height: 50px; padding: 12px 20px; border: 0; border-radius: 11px; background: linear-gradient(130deg, #f3a9b8, #d66e8d); color: #2a1823; font-size: 14px; font-weight: 800; box-shadow: 0 8px 24px #b94c6c3b; transition: transform .18s, filter .18s; }
button:hover { transform: translateY(-2px); filter: brightness(1.07); }
button:disabled { opacity: .5; cursor: wait; transform: none; }
#auth-status { min-height: 26px; margin-top: 18px; color: #ffc0ce; }
#https-link a { text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.admin-page .auth-card h1 { margin-top: 72px; }
.admin-page #admin-login, .admin-page #admin-panel { margin-top: 18px; }
.admin-page #admin-login button, .admin-page #issue-invite { width: 100%; margin-top: 20px; }
.admin-page #invite-url { margin-top: 8px; font-size: 12px; }
.admin-page #admin-panel a { text-decoration: none; font-weight: 700; }
.admin-page #admin-panel a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-card { width: min(500px, calc(100% - 48px)); padding: 40px 0; }
  .auth-card h1 { margin-top: 74px; }
}
@media (max-width: 560px) {
  .auth-page { background: radial-gradient(circle at 80% 0%, #342a3a, transparent 55%), #10151e; }
  .auth-card { align-self: start; width: min(100% - 40px, 440px); padding-top: max(30px, env(safe-area-inset-top)); }
  .brand { font-size: 20px; }
  .brand-symbol { width: 36px; height: 36px; }
  .auth-card h1, .admin-page .auth-card h1 { margin-top: clamp(70px, 18vh, 135px); font-size: 30px; }
  .auth-card p { font-size: 13px; }
  .auth-card form { margin-top: 28px; }
  button { width: 100%; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
