:root{
  --top-bg:#fff;
  --top-text:#0a121a;
  --panel:#fff;
  --card:#f7e4cb;
  --line:#0a121a;
  --text:#0a121a;
  --muted:#6b7280; /* Ãß°¡: subtitle µî¿¡ »ç¿ë */
  --error:#ff5d5d;

  --radius: 6px;
  --shadow: 0 8px 24px rgba(0,0,0,.15);
  --focus: 0 0 0 3px rgba(10,18,26,.2);
}

*{ box-sizing:border-box }
html,body{ height:100% }

body{
  margin:0;
  background:#0a121a;
  color:var(--text);
  font:14px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Apple SD Gothic Neo,Noto Sans KR,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{ color:#555; text-decoration:none; }
a:hover{ text-decoration:underline; }

.login-wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:32px 16px;
}

.login-card{
  width:min(420px,100%);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 20px;
  box-shadow:var(--shadow);
}

.login-header .brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:4px;
  text-decoration:none;
}

.login-header h1{
  font-size:18px;
  margin:0;
  color:#0a121a;
}

.subtitle{
  margin:.25rem 0 0;
  color:var(--muted);
  font-size:12px;
}

.login-form{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.field{
  display:grid;
  gap:6px;
  font-weight:700;
}

.label{
  color:#0a121a;
  font-size:12px;
}

input[type="text"],
input[type="password"]{
  width:100%;
  padding:10px 12px;
  background:#fff;
  color:#111;
  border:1px solid #6b7280;
  border-radius:4px;
  outline:none;
  caret-color:#0a121a;
  transition:border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

input::placeholder{
  color:#6b7280;
  font-size:12px;
  opacity:.9;
}

input:focus{
  border-color:#0a121a;
  background-color:#fff;
}

input:focus-visible{
  box-shadow:var(--focus);
}

/* ¿¡·¯ »óÅÂ */
.field.invalid input{
  border-color:var(--error);
  box-shadow:0 0 0 3px rgba(255,93,93,.15);
}

.error-msg{
  margin-top:4px;
  font-size:12px;
  color:var(--error);
  font-weight:600;
}

.pw-box{ position:relative; }

.pw-toggle{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:transparent; /* ¼öÁ¤ */
  color:#333;
  border-radius:4px;
  padding:4px 8px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  min-height:28px; /* ÅÍÄ¡ Å¸°Ù È®º¸ */
}

.pw-toggle:hover{ background:rgba(0,0,0,.06); }
.pw-toggle:focus-visible{ box-shadow:var(--focus); }

.btn{
  width:100%;
  padding:10px 12px;
  border-radius:4px;
  cursor:pointer;
  border:1px solid #0a121a;
  background:#0a121a;
  color:#f7e4cb;
  font-weight:700;
  letter-spacing:.2px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  margin-top:10px;
  transition:transform .05s ease, filter .15s ease, box-shadow .15s ease;
}

.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform:translateY(1px); }
.btn:focus-visible{ box-shadow:var(--focus), 0 6px 18px rgba(0,0,0,.25); }

.btn:disabled,
.btn[aria-disabled="true"]{
  opacity:.6;
  cursor:not-allowed;
  filter:none;
}

/* ·Îµù »óÅÂ Ç¥½Ã¿ë */
.btn[aria-busy="true"]{
  position:relative;
  pointer-events:none;
}
.btn[aria-busy="true"]::after{
  content:"";
  position:absolute;
  inset:auto 12px auto auto;
  width:14px; height:14px;
  border:2px solid #f7e4cb;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin .8s linear infinite;
}

/* ÀÔ·Â+Åä±Û ¾ÆÀÌÄÜ ¹èÄ¡ À¯Áö */
.pw-box { position: relative; }
.pw-box input { width: 100%; padding-right: 40px; }
.pw-box .pw-toggle{
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; color: #555;
}

/* ¿É¼Ç Çà: ÀÌ¹ÌÁö¿Í µ¿ÀÏÇÑ ÁÂ¿ì Á¤·Ä */
.options-row{
  display: flex; justify-content: space-between; align-items: center;
}
.options-row .remember{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #333;
}
.options-row .right-actions{
  display: inline-flex; align-items: center; gap: 10px;
}
.options-row .right-actions a{
  font-size: 0.95rem; color: #666; text-decoration: none;
}
.options-row .right-actions a:hover{ text-decoration: underline; }

/* Ãß°¡(¾ÆÀÌÄÜ »ý¼º) ÀÛÀº ¿øÇü ¾ÆÀÌÄÜ ¹öÆ° */
.btn-icon{
  align-items: center; justify-content: center;
  border-radius: 3px; color: #222; font-size: 12px;
  border: none; background: transparent; cursor: pointer;font-weight: 500;
}
.btn-icon:hover { text-decoration: underline;}
.btn-icon i { color: #ff5e6f;}

/* È¸¿ø°¡ÀÔ ¾Æ¿ô¶óÀÎ ¹öÆ° (ÀÌ¹Ì ÀÖÀ¸¸é »ý·« °¡´É) */


/* ±âº» ·Î±×ÀÎ ¹öÆ°ÀÌ ÀÌ¹Ì ÀÖ´Ù¸é À¯Áö */
.btn.btn-primary{ width:100%; height:44px; }

@keyframes spin{ to{ transform:rotate(360deg); } }

.links{
  margin-top:8px;
  text-align:center;
  color:#fff;
  font-size:13px;
}
.links a{
  color:#0a121a;
  text-decoration:none;
  font-weight:700;
}
.links a:hover{ text-decoration:underline; }

.sep{ opacity:.5; margin:0 .5ch; color:#0a121a; }
#loginTitle{ color:#0a121a; }

.login-footer{
  margin-top:14px;
  text-align:center;
  color:#333;
}
.login-footer .legacy{ font-size:10px; }
.login-footer .copy_right{ font-size:11px; }

/* Á¢±Ù¼º: ½Ã°¢Àû ¼û±è À¯Æ¿ */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ¸ð¼Ç ¼±È£µµ ¹Ý¿µ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}


#signupLink, #findLink, .policy {
  color: #333;
  text-decoration: none;
  cursor: pointer;
  font-weight:bolder;
}

#signupLink:hover, #findLink:hover, .policy:hover {
  text-decoration: underline;
}
