/* group.login — 스퀘어 미디어그룹 기자 로그인 (wp-login.php) */
body.login.sg-login {
  --wine: #6b2a35; --wine-d: #2a0f15; --ink: #1a1a1a; --paper: #fbf7f2;
  --sq-b: #1d4ed8; --sq-g: #0f7b6c; --sq-y: #b7861b; --sq-r: #a3304a;
  min-height: 100vh; margin: 0; background: var(--wine-d); color: #fff;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: center;
  gap: 48px; padding: 0 clamp(24px, 6vw, 96px); box-sizing: border-box; overflow-x: hidden;
}
/* 배경 모자이크 */
.sg-login-mosaic { position: fixed; inset: -2%; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: calc(104vh / 6); gap: 3px; z-index: 0; transform: rotate(-2deg) scale(1.04); }
.sg-login-mosaic span { background: #3a1a20 center/cover no-repeat; filter: grayscale(.35) contrast(1.05); opacity: 0; animation: sgTileIn .9s ease forwards; animation-delay: calc(var(--d) * 70ms); }
@keyframes sgTileIn { to { opacity: 1; } }
.sg-login-veil { position: fixed; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(42,15,21,.94) 0%, rgba(42,15,21,.82) 45%, rgba(42,15,21,.55) 75%, rgba(42,15,21,.72) 100%); }
/* 격자 칸은 소개(왼쪽)·로그인 상자(오른쪽) 둘만 차지한다. 나머지 body 자식(숨은 제목·언어 선택 등)은 칸 밖 */
body.sg-login > :not(.sg-login-brand):not(#login):not(.sg-login-mosaic):not(.sg-login-veil):not(.language-switcher) { position: absolute; }
.sg-login-brand { word-break: keep-all; }
body.login.sg-login .language-switcher { position: fixed !important; right: 24px; bottom: 16px; z-index: 3; margin: 0; padding: 0; }
body.sg-login .language-switcher label { color: rgba(255,255,255,.8); }
/* 왼쪽 그룹 소개 */
.sg-login-brand { position: relative; z-index: 2; max-width: 620px; grid-column: 1; grid-row: 1; }
.sg-login-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.sg-login-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 34px; height: 34px; }
.sg-login-mark i { display: block; }
.sg-login-mark i:nth-child(1) { background: var(--sq-b); } .sg-login-mark i:nth-child(2) { background: var(--sq-g); }
.sg-login-mark i:nth-child(3) { background: var(--sq-y); } .sg-login-mark i:nth-child(4) { background: var(--sq-r); }
.sg-login-eyebrow { margin: 40px 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: #f3c9a8; }
body.login.sg-login .sg-login-brand, body.login.sg-login .sg-login-brand .sg-login-title { text-align: left; }
.sg-login-title { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.sg-login-lead { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.82); }
.sg-login-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; border-top: 1px solid rgba(255,255,255,.25); }
.sg-login-stats div { padding: 18px 28px 0 0; margin-right: 28px; }
.sg-login-stats dt { font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .04em; }
.sg-login-stats dd { margin: 6px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.sg-login-stats small { font-size: 15px; font-weight: 600; margin-left: 2px; }
/* 오른쪽 로그인 상자 */
body.sg-login #login { position: relative; z-index: 2; width: 100%; padding: 0; margin: 0; grid-column: 2; grid-row: 1; }
body.sg-login #login h1 { display: none; }
body.sg-login .sg-login-card-head { background: #fff; color: var(--ink); padding: 30px 32px 4px; border-radius: 18px 18px 0 0; }
body.sg-login .sg-login-card-head .sg-login-eyebrow { margin: 0 0 8px; color: var(--wine); }
body.sg-login .sg-login-card-head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
body.sg-login .sg-login-card-head p:last-child { margin: 8px 0 0; color: #6b6b6b; font-size: 14px; }
body.sg-login #login .message, body.sg-login #login .notice, body.sg-login #login #login_error { margin: 0; border-radius: 0; box-shadow: none; background: #fff; color: #1a1a1a; padding: 12px 32px 4px; border-left: 0; }
body.sg-login #login #login_error { background: #fdf2f3; color: #8a1f2d; border-top: 1px solid #f3d4d8; border-bottom: 1px solid #f3d4d8; padding: 12px 32px; }
body.sg-login #login #login_error a, body.sg-login #login .message a { color: #6b2a35; }
body.sg-login #loginform, body.sg-login #lostpasswordform { margin: 0; padding: 22px 32px 30px; border: 0; border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: #fff; }
body.sg-login #lostpasswordform, body.sg-login #resetpassform { margin: 0; padding: 22px 32px 30px; border: 0; border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: #fff; color: #1a1a1a; }
body.sg-login #login > .message:first-of-type, body.sg-login #login > .notice:first-of-type { border-radius: 18px 18px 0 0; padding-top: 24px; }
body.sg-login #loginform label, body.sg-login #lostpasswordform label, body.sg-login #resetpassform label { color: #333; font-weight: 600; font-size: 14px; }
body.sg-login #loginform input[type=text], body.sg-login #loginform input[type=password] { border: 1px solid #d6d0ca; border-radius: 10px; padding: 8px 12px; font-size: 17px; box-shadow: none; }
body.sg-login #loginform input:focus { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(107,42,53,.2); }
body.sg-login .button-primary { background: var(--wine) !important; border-color: var(--wine) !important; border-radius: 10px !important; padding: 4px 22px !important; font-size: 15px !important; font-weight: 700; }
body.sg-login .button-primary:hover { background: #57202a !important; }
body.sg-login #nav, body.sg-login #backtoblog { padding: 0 6px; margin: 14px 0 0; }
body.sg-login #nav a, body.sg-login #backtoblog a { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.8); font-weight: 600; }
body.sg-login .language-switcher, body.sg-login .privacy-policy-page-link { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .sg-login-mosaic span { animation: none; opacity: 1; } }
@media (max-width: 960px) {
  body.login.sg-login { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 72px; align-content: start; }
  body.sg-login #login { grid-column: 1; grid-row: 2; }
  body.login.sg-login .language-switcher { position: relative !important; right: auto; bottom: auto; grid-column: 1; grid-row: 3; }
  .sg-login-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vh; }
  .sg-login-veil { background: rgba(42,15,21,.8); }
  .sg-login-eyebrow { margin-top: 24px; }
  .sg-login-lead br, .sg-login-title br { display: none; }
  .sg-login-stats dd { font-size: 26px; }
}
