/**
 * PC login.html · m.admin 로그인 — 동일 레이아웃 (너비만 max-width로 조절)
 */
:root {
  --login-accent: #4f46e5;
  --login-text: #1e293b;
  --login-muted: #64748b;
  --login-card: #ffffff;
}

body.login-page,
#loginShell {
  --m-bg: #ffffff;
  --m-card: var(--login-card);
  --m-accent: var(--login-accent);
  --m-text: var(--login-text);
  --m-muted: var(--login-muted);
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  color: var(--login-text);
  font-family: "Pretendard", "Pretendard Std", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.safe-top {
  padding-top: env(safe-area-inset-top, 0);
}
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

#loginShell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  background: #ffffff;
  width: 100%;
}

#loginShell .login-header {
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: center;
  padding: 40px 0 32px;
}

#loginShell .login-header .login-logo-img,
#signupShell .login-header .login-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: min(220px, 72vw);
  object-fit: contain;
  object-position: center;
}

#loginShell .login-form-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--login-card);
  border: none;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

#loginShell .login-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

#loginShell input[type="email"],
#loginShell input[type="password"],
#loginShell input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  color: var(--login-text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
}

#loginShell input:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

#loginShell .login-err {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  min-height: 0;
  text-align: center;
}

#loginShell .login-err:empty {
  display: none;
}

#loginShell .login-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

#loginShell .login-btn {
  min-height: 44px;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.2;
}

#loginShell .login-btn-signup {
  flex: 0 0 30%;
  max-width: 30%;
  background: #fff;
  color: var(--login-accent);
  border: 1px solid rgba(79, 70, 229, 0.35);
}

#loginShell .login-btn-signup:active {
  background: #f5f3ff;
}

#loginShell .login-btn-login {
  flex: 1 1 70%;
  min-width: 0;
  background: var(--login-accent);
  color: #fff;
}

#loginShell .login-btn-login:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#loginShell .login-btn-login:active {
  opacity: 0.9;
}

#loginShell.hidden {
  display: none !important;
}

/* ── signup.html (로그인과 동일 셸) ── */
#signupShell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  background: #ffffff;
  width: 100%;
}

#signupShell .login-header {
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: center;
  padding: 32px 0 24px;
}

#signupShell .signup-form-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--login-card);
  border: none;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

#signupShell .signup-form-wrap h1 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  color: var(--login-text);
}

#signupShell .signup-sub {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--login-muted);
  text-align: center;
  line-height: 1.45;
}

#signupShell .signup-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--login-muted);
  text-align: center;
}

#signupShell .signup-foot a {
  color: var(--login-accent);
  font-weight: 700;
  text-decoration: none;
}

#signupShell .signup-ok {
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}

#signupShell .signup-ok:empty {
  display: none;
}

#signupShell .signup-sheet-wrap {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}

#signupShell .signup-sheet {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
  margin: 0;
}

#signupShell .signup-sheet th,
#signupShell .signup-sheet td {
  border: 1px solid #cbd5e1;
  vertical-align: middle;
  padding: 0;
}

#signupShell .signup-sheet th {
  width: 5rem;
  max-width: 5rem;
  padding: 8px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  background: #f8faff;
  white-space: normal;
  line-height: 1.25;
  word-break: keep-all;
}

#signupShell .signup-sheet td {
  background: #fff;
}

#signupShell .signup-sheet input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--login-text);
  background: #fff;
  min-height: 44px;
  border-radius: 0;
}

#signupShell .signup-sheet input:focus {
  outline: none;
  background: #f5f3ff;
  box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.35);
}

#signupShell .signup-sheet input::placeholder {
  color: #94a3b8;
}

#signupShell .signup-bank-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  min-height: 44px;
}

#signupShell .signup-bank-split input:first-child {
  border-right: 1px solid #cbd5e1;
}

#signupShell .signup-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

#signupShell .signup-submit.login-btn-login {
  flex: none;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: var(--login-accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

#signupShell .signup-submit.login-btn-login:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#signupShell .signup-submit.login-btn-login:active {
  opacity: 0.9;
}
