:root {
  --form-max: 420px; /* 로그인폼 공통 폭 */
}

body {
  margin: 0;
  font-family: "Pretendard GOV", "Noto Sans KR", sans-serif;
  background: #f8f9fa;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  display: flex;
  max-width: 1000px;
  width: 100%;
  height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,.1);
  overflow: hidden;
}

/* 좌측 */
.login-left {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e9f2fb;
}
.login-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 우측 */
.login-right {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

.form-box {
  width: 100%;
  max-width: var(--form-max);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e2124;
  text-align: center;
  margin: 0;
}

.login-subtitle {
  font-size: 15px;
  color: #5d5d5d;
  text-align: center;
  margin: -6px 0 10px 0;
}

/* 에러 메시지 */
.error {
  color: #c0392b;
  font-size: 14px;
  text-align: center;
  min-height: 20px; /* 공간 유지 */
}

/* 입력창 */
.input-group {
  display: flex;
  align-items: center;
  height: 50px;
  margin-top:10px;
  border: 1px solid #cdd1d5;
  border-radius: 5px;
  background: #fff;
}

.input-icon {
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-icon img { width: 20px; height: 20px; }

.input-group input {
  flex: 1;
  height: 100%;
  border: none;
  font-size: 16px;
  padding: 0 10px;
  box-sizing: border-box;
}
.input-group input:focus { outline: none; }

/* 로그인 버튼 */
.btn-login {
  width: 100%;
  height: 55px;
  margin-top:10px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(225deg,#244cb1,#2186b3);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn-login:hover { opacity: .9; }

/* 하단 버튼 */
.btn-group {
  width: 100%;
  display: flex;
  gap: 12px;
}
.btn-alt {
  flex: 1;
  height: 45px;
  border: 1px solid #5d5d5d;
  border-radius: 5px;
  background: #fff;
  color: #5d5d5d;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-alt:hover { background: #f4f4f4; }

/*  GPKI 팝업 모달 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* 팝업 내용 */
.modal-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.modal-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}
.modal-content label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
}
.modal-content select,
.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.modal-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#gpkiConfirm { background: #244cb1; color: #fff; }
#gpkiCancel { background: #ccc; color: #333; }
