@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* 주색상 - BMW M 컬러 조합 */
  --primary-color: #00367e; /* BMW M 다크 블루 */
  --primary-light: #0093d8; /* BMW M 라이트 블루 */
  --accent-color: #d5002c; /* BMW M 레드 */

  /* 텍스트 색상 */
  --text-white: #ffffff;
}

body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--primary-light)
  );
  font-family: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
}

.login-container {
  background: transparent;
  text-align: center;
  width: 90vw;
  max-width: 400px;
}

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

.login-header .login-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 50px;
  height: auto;
}

.login-box h1 {
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* 자동채움(autofill) 시 브라우저가 넣는 배경색이 보이지 않게 (아무 색도 덮지 않음) */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 30px transparent inset;
  box-shadow: 0 0 0 30px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}

.input-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
  transition: all 0.3s ease;
}

.input-group input:focus + .input-line {
  background: rgba(255, 255, 255, 0.8);
  height: 2px;
}

.login-btn {
  padding: 12px;
  font-size: 14px;
  color: #fff;
  background-color: #1d56a3;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  height: 45px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.register-link {
  margin-top: 12px;
  text-align: center;
}

.register-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.register-link a:hover {
  color: var(--text-white);
}

/* 메시지 모달 (승인 요청 등) */
.login-msg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.login-msg-modal.is-open {
  display: flex;
}
.login-msg-modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.login-msg-modal-text {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.login-msg-modal-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  color: #fff;
  background-color: #1d56a3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.login-msg-modal-btn:hover {
  background-color: #164a8f;
}
