:root {
  --primary-blue: #2196f3;
  --bg-main: #f5f5f5;
  --bg-card: #ffffff;
  --text-main: #212121;
  --text-dim: #757575;
  --border-color: rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--bg-main);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  overflow: hidden; /* 모달 오픈 시 스크롤 방지 */
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
}

.logo {
  height: 70px;
  margin-bottom: 60px;
  object-fit: contain;
}

/* --- [공통] 인풋 필드 스타일 --- */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group .material-icons {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.custom-input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: none;
  border-radius: 15px;
  background-color: var(--bg-card);
  font-size: 16px;
  color: var(--text-main);
  box-sizing: border-box;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.custom-input:focus {
  border: 2px solid var(--primary-blue);
  padding: 13px 13px 13px 48px;
}

/* --- [공통] 버튼 스타일 --- */
.login-btn {
  width: 100%;
  height: 55px;
  margin-top: 30px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  transition: background-color 0.2s;
}
.login-btn:active {
  background-color: #1976d2;
}
.login-btn:disabled {
  background-color: #bdbdbd;
  cursor: not-allowed;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--primary-blue);
}

/* =========================================================
           [공통 모달 스타일] (control.html / common.css 와 통일)
           ========================================================= */
.modal {
  display: none; /* 기본 숨김 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* 앱과 동일한 카드형 모달 */
.modal-content {
  background-color: var(--bg-card);
  width: 85%;
  max-width: 320px;
  padding: 24px;
  border-radius: 18px; /* 둥근 모서리 통일 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal.show .modal-content {
  transform: translateY(0);
}

/* 모달 타이틀 */
.modal h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
}

/* 모달 본문 텍스트 */
.modal p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 모달 하단 버튼 영역 (우측 정렬) */
.modal-actions {
  display: flex;
  justify-content: flex-end; /* 앱과 동일하게 우측 정렬 */
  gap: 12px;
  margin-top: 24px;
}

/* 텍스트 버튼 (취소 등) */
.btn-text {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: bold;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
}
.btn-text:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 채워진 버튼 (확인 등) */
.btn-fill {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
}
.btn-fill:active {
  background-color: #1976d2;
}
.btn-fill:disabled {
  background-color: #ccc;
  cursor: default;
  box-shadow: none;
}
