/* ===========================
   로그인 전용 스타일
   assets\css\login.css
   =========================== */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ===== Brand (아이콘 + 텍스트) for login ===== */
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.login-logo .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;           /* 아이콘-텍스트 간격 */
  font-size: 28px;    /* 여기만 조절하면 아이콘도 같이 커짐/작아짐 */
  font-weight: 700;
  line-height: 1.1;
}

.login-logo .brand-icon {
  height: 1em;        /* 텍스트 라인 높이에 맞추기 */
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* 기본: 라이트만 보이게 강제 */
.login-logo .brand-icon.brand-light { display: inline-block !important; }
.login-logo .brand-icon.brand-dark  { display: none !important; }

/* 다크 모드: 다크만 보이게 강제 */
body.dark-mode .login-logo .brand-icon.brand-light { display: none !important; }
body.dark-mode .login-logo .brand-icon.brand-dark  { display: inline-block !important; }


@media (max-width: 420px) {
  .login-logo .brand { font-size: 24px; }
}

/* ===== 제목 & 폼 ===== */
.login-title {
  font-size: 18px;
  text-align: center;
  margin: 10px 0 18px;
  color: #222;
}

.login-error {
  background: #ffe9e9;
  color: #c13030;
  border: 1px solid #ffcccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 12px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-label {
  font-size: 12px;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-input {
  height: 38px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease;
  background: #fff;
}
.login-input:focus {
  border-color: #4a90e2;
}

.login-button {
  margin-top: 6px;
  height: 40px;
  border: 1px solid #4a90e2;
  background: #4a90e2;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.login-button:hover {
  background: #357abd;
}
