* { box-sizing: border-box; }
:root { font-family: "Segoe UI", system-ui, sans-serif; color: #251d2f; background: #f6f1e9; }
body { min-height: 100svh; display: grid; place-items: center; margin: 0; }
.login-stage { position: relative; isolation: isolate; display: grid; place-items: center; width: min(100%, 1320px); min-height: max(660px, 88svh); padding: 105px 24px 75px; overflow: hidden; }
.login-stage::after { content: ""; position: absolute; z-index: -2; inset: auto 6% 23% 6%; border-top: 1px solid #ded5ca; }
.wordmark { position: absolute; top: 34px; left: clamp(25px, 6vw, 80px); display: inline-flex; align-items: center; color: inherit; font-weight: 800; font-size: 21px; letter-spacing: -.045em; text-decoration: none; }
.mark { width: 34px; height: 34px; display: grid; place-items: center; margin-right: 9px; border-radius: 10px; background: #ede1f6; color: #6841aa; font-size: 25px; line-height: 1; }
.period { color: #72439b; }
.login-card { width: min(100%, 405px); padding: 43px 37px 39px; background: #fffefd; border: 1px solid #efe8e0; border-radius: 26px; box-shadow: 0 23px 54px #523b351b, 0 3px 9px #523b350a; }
h1 { margin: 0; text-align: center; font-size: clamp(31px, 5vw, 38px); line-height: 1.1; font-weight: 760; letter-spacing: -.055em; }
.intro { margin: 11px 0 28px; text-align: center; color: #675d6e; font-size: 14px; line-height: 1.55; }
form { display: grid; }
label { margin: 0 0 7px; font-size: 13px; font-weight: 650; }
input, button { font: inherit; }
input { width: 100%; min-width: 0; height: 48px; padding: 0 13px; color: #251d2f; background: #fffefd; border: 1px solid #e1dbe4; border-radius: 8px; }
input::placeholder { color: #756b7c; }
#username { margin-bottom: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 69px; }
.reveal { position: absolute; inset: 5px 6px 5px auto; min-width: 53px; border: 0; border-radius: 5px; background: transparent; color: #624182; font-size: 13px; font-weight: 700; cursor: pointer; }
.reveal:hover { background: #f4ebfa; }
.submit { display: flex; align-items: center; justify-content: center; position: relative; margin-top: 24px; padding: 0 35px; min-height: 48px; color: #342119; font-weight: 750; border: 1px solid #ecad76; border-radius: 8px; background: #ffc999; cursor: pointer; }
.submit:hover { background: #ffc088; }
.submit span { position: absolute; right: 15px; font-size: 20px; font-weight: 500; }
:focus-visible { outline: 2px solid #844fb0; outline-offset: 3px; }
.error { margin: 11px 0 0; padding: 9px 11px; background: #fff0f1; color: #932737; border-radius: 8px; font-size: 13px; }
.visual-panel { position: absolute; z-index: -1; width: min(39%, 475px); right: 2.5%; bottom: 17%; pointer-events: none; }
.visual-panel img { display: block; width: 100%; height: auto; mask-image: radial-gradient(ellipse 56% 60% at 50% 51%, #000 67%, transparent 100%); }
.line-art { position: absolute; z-index: -1; left: 12%; bottom: 23%; width: clamp(140px, 17vw, 225px); height: 235px; }
.line-art i { position: absolute; display: block; bottom: 0; border-radius: 15px 15px 2px 2px; }
.line-art i:nth-child(1) { width: 32%; height: 43%; left: 8%; background: radial-gradient(circle, #73518f 2px, transparent 3px) 0 0/20px 20px, #e9d8f7; transform: rotate(-7deg); transform-origin: bottom right; }
.line-art i:nth-child(2) { width: 34%; height: 29%; left: 43%; border: 1px solid #97899d; background: repeating-linear-gradient(142deg, #faf7ef 0 13px, #f8eccf 14px 15px); }
.line-art i:nth-child(3) { width: 42%; height: 28%; left: 27%; bottom: 57%; border: 1px solid #93859b; border-radius: 8px; transform: rotate(9deg); background: linear-gradient(#aa94b8,#aa94b8) center 39%/58% 1px no-repeat, linear-gradient(#c0afc9,#c0afc9) center 57%/41% 1px no-repeat; }
@media (max-width: 1000px) { .line-art { left: 6%; } .visual-panel { right: 0; width: 35%; } }
@media (max-width: 760px) {
  .login-stage { min-height: 100svh; padding: 93px 17px 34px; }
  .wordmark { top: 24px; }
  .login-card { padding: 32px clamp(19px, 6vw, 33px); }
  .visual-panel, .line-art, .login-stage::after { display: none; }
}

.notice { margin: 11px 0 0; padding: 9px 11px; background: #eaf6ed; color: #265f3d; border-radius: 8px; font-size: 13px; }
