@charset "UTF-8";

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f7fb;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ── 상단 미니 헤더 ── */
.login-top-bar {
  background: #fff;
  border-bottom: 1px solid #e7e7ef;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
}

.login-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.login-logo-symbol {
  display: flex;
  gap: 3px;
}

.login-logo-symbol span {
  display: block;
  width: 7px;
  border-radius: 2px;
}

.login-logo-symbol span:nth-child(1) { height: 18px; background: #6658d9; }
.login-logo-symbol span:nth-child(2) { height: 12px; background: #39c6a6; margin-top: 6px; }
.login-logo-symbol span:nth-child(3) { height: 22px; background: #ff6f61; margin-top: 2px; }

.login-logo-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: #222233;
  line-height: 1.2;
}

.login-logo-text small {
  font-size: .65rem;
  color: #8888aa;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── 본문 영역 ── */
.login-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(102, 88, 217, .10);
  padding: 52px 48px 44px;
  width: 100%;
  max-width: 440px;
}

.login-card-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6658d9 0%, #8a7de0 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.login-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #222233;
  margin-bottom: 6px;
}

.login-card-desc {
  font-size: .85rem;
  color: #8888aa;
}

/* ── 폼 요소 ── */
.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #555566;
  margin-bottom: 7px;
}

.login-field .input-wrap {
  position: relative;
}

.login-field .input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaaacc;
  font-size: .95rem;
}

.login-field input[type="text"],
.login-field input[type="password"] {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #e0e0ee;
  border-radius: 10px;
  font-size: .95rem;
  color: #222233;
  background: #f9f9fc;
  outline: none;
  transition: border-color .2s, background .2s;
}

.login-field input:focus {
  border-color: #6658d9;
  background: #fff;
}

.login-field input::placeholder {
  color: #c0c0d8;
}

/* ── 성공 ── */
.login-success {
  background: #f0fff8;
  border: 1px solid #b2efd4;
  border-radius: 10px;
  color: #1a7a4a;
  font-size: .85rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 에러 ── */
.login-error {
  background: #fff2f2;
  border: 1px solid #ffd0d0;
  border-radius: 10px;
  color: #cc3333;
  font-size: .85rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 로그인 버튼 ── */
.btn-user-login {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #6658d9 0%, #7a6ee8 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity .2s;
  letter-spacing: .3px;
}

.btn-user-login:hover {
  opacity: .88;
}

/* ── 하단 링크 ── */
.login-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}

.login-links a {
  font-size: .82rem;
  color: #8888aa;
  text-decoration: none;
  transition: color .2s;
}

.login-links a:hover {
  color: #6658d9;
}

.login-links span {
  color: #e0e0ee;
  font-size: .75rem;
}

/* ── 하단 안내 ── */
.login-footer-note {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f8;
  font-size: .8rem;
  color: #aaaacc;
}

.login-footer-note a {
  color: #6658d9;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 480px) {
  .login-card { padding: 36px 24px 32px; }
}
