@charset "UTF-8";

/* ========================================
   로그인 페이지 전용 CSS - login.css
   ======================================== */

/* 기본 리셋 및 설정 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	/*  background: linear-gradient(135deg, #667eea 0%, #2a374a 100%); */
	background: #2a374a;
	/* background: #DCECE3; */
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	overflow: hidden;
	position: relative;
}

/* 배경 애니메이션 */
body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
  background-image: url("/img/login-background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
	z-index: 1;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
}

/* 로그인 컨테이너 */
.login-container {
	position: relative;
	z-index: 2;
	width: 100%;
  max-width: 720px;
	margin: 20px;
}

/* 로고 섹션 */
.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
	text-align: center;
  margin-bottom: 48px;
	animation: slideDown 0.8s ease-out;
}

.login-logo-icon {
  width: 155px;
	margin-bottom: 10px;
}

.login-logo-text {
  color: #111;
  font-size: 32px;
	font-weight: bold;
	margin-bottom: 8px;
}

.login-logo-subtitle {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 400;
}

/* 로그인 카드 */
.login-card {
	background: white;
  border-radius: 32px;
  padding: 48px 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	animation: slideUp 0.8s ease-out;
}

/* 로그인 폼 */
.login-form {
	width: 100%;
	user-select: none;
}

.login-title {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 25px;
}

.login-title2 {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 40px;
}

.login-subtitle {
	text-align: center;
	font-size: 15px;
	color: #1f2937;
	margin-bottom: 15px;
}

.password-reset-user {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  height: 96px;
  padding: 20px 80px;
  margin-bottom: 40px;
  background: rgba(95, 125, 245, 0.1);
  border-radius: 10px;
}

.password-reset-user-label {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
  color: #111111;
}

.password-reset-user-id {
  font-family: 'Pretendard', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
  color: #5F7DF5;
}

.login-form-group {
	position: relative;
  min-height: 57px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.login-form-label {
	display: block;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	font-size: 14px;
}

.login-form-input {
  position: absolute;
  left: 0;
  top: 0;
	width: 100%;
  height: 100%;
	padding: 16px 20px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	background: #fafbfc;
	transition: all 0.3s ease;
	color: #374151;
}

.login-form-input:focus {
	border-color: #667eea;
	background: white;
	outline: none;
}

.login-form-input::placeholder {
	color: #9ca3af;
}
.login-form-input:not(:placeholder-shown) {
  border-color: #667eea;
}

.login-form-bottom {
	text-align: center;
	font-size: 14px;
}

/* 로그인 버튼 */
.login-btn {
	width: 100%;
  padding: 20px 0px;
  background: #5f7df5;
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
  margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.login-btn:disabled {
  background: #9da3ab;
	color: white;
	transition: none;
	pointer-events: none;
}

.login-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.login-btn:not(:disabled):hover::before {
	left: 100%;
}

.login-btn:not(:disabled):hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

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

/* 추가 옵션 */
.login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	font-size: 14px;
}

.login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	cursor: pointer;
}

.login-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #667eea;
}

.login-forgot {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.login-forgot:hover {
	color: #4f46e5;
}

/* 계정신청 링크 */
.login-signup {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
	color: #6b7280;
	font-size: 14px;
}

.signup-link,.pw-reset {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.3s ease;
}

.signup-link:hover,.pw-reset:hover {
	color: #4f46e5;
	text-decoration: underline;
}

/* 푸터 */
.login-footer {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
  color: #7a809b;
	font-size: 12px;
	text-align: center;
	z-index: 2;
}

/* ========================================
   계정신청 레이어 팝업
   ======================================== */

/* 팝업 오버레이 */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease-out;
}

.popup-overlay.active {
	display: flex;
}

/* 팝업 컨테이너 */
.popup-container {
	background: white;
	border-radius: 16px;
	width: 90%;
	max-width: 550px;
	max-height: 90vh;
	overflow: hidden;
	position: relative;
	animation: popupSlideIn 0.4s ease-out;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* 팝업 헤더 */
.popup-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popup-title {
	font-size: 18px;
	font-weight: 700;
}

.popup-close {
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.popup-close:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* 팝업 바디 */
.popup-body {
	padding: 32px;
	max-height: calc(90vh - 120px);
	overflow-y: auto;
}

.popup-form-group {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}
.popup-form-group-id{
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.popup-form-group-id .check-info{
	display: flex;
    width: 100%;
}

.popup-form-label {
	display: block;
	font-weight: 600;
	/* color: #374151; */
	margin-bottom: 6px;
	font-size: 14px;
	min-width: 100px;
}

#passwordUpdateForm .popup-form-label {
	min-width: 150px;
}

.popup-form-input,
.popup-form-select,
.popup-form-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	background: white;
	transition: all 0.3s ease;
	color: #374151;
}

.popup-form-input:focus,
.popup-form-select:focus,
.popup-form-textarea:focus {
	border-color: #667eea;
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.popup-form-textarea {
	min-height: 100px;
	resize: vertical;
}

.popup-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* 팝업 버튼 */
.popup-buttons {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.popup-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;

	white-space: nowrap;
    overflow: hidden;
}

.popup-btn-secondary {
	background: #6b7280;
	color: white;
}

.popup-btn-secondary:hover {
	background: #4b5563;
	transform: translateY(-1px);
}

.popup-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.popup-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* 필수 입력 표시 */
.required {
	color: white;
}

.popup-form-label .required::after {
	content: ' *';
}

/* 입력 검증 스타일 */
.popup-form-input.error,
.popup-form-select.error,
.popup-form-textarea.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
	color: #ef4444;
	font-size: 12px;
	margin-top: 4px;
	display: none;
}

.error-message.show {
	display: block;
}

/* 성공 메시지 */
.success-message {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: none;
}

.success-message.show {
	display: block;
}

/* 애니메이션 */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes popupSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.login-container {
		max-width: 350px;
		margin: 16px;
	}

	.login-card {
		padding: 32px 24px;
	}

	.login-logo-icon {
    width: 90px;
		font-size: 24px;
	}

	.login-logo-text {
		font-size: 24px;
	}

	.login-title, .login-title2 {
		font-size: 20px;
	}

  .login-subtitle {
    font-size: 15px;
  }

	.popup-container {
		width: 95%;
		margin: 16px;
	}

	.popup-header {
		padding: 20px 24px;
	}

	.popup-body {
		padding: 24px;
	}

	.popup-form-row {
		grid-template-columns: 1fr;
	}

	.popup-buttons {
		flex-direction: column-reverse;
		gap: 8px;
	}
}

@media (max-width: 480px) {
	.login-container {
		max-width: 320px;
	}

	.login-card {
		padding: 24px 20px;
	}

	.login-form-input {
		padding: 14px 16px;
		font-size: 14px;
	}

	.login-options {
    /* flex-direction: column; */
		gap: 12px;
		align-items: flex-start;
	}

	.popup-header {
		padding: 16px 20px;
	}

	.popup-title {
		font-size: 18px;
	}

	.popup-body {
		padding: 20px;
	}
}

/* 로딩 상태 */
.login-btn.loading {
	cursor: not-allowed;
	opacity: 0.8;
}

.login-btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	border: 2px solid transparent;
	border-top: 2px solid white;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 다크모드 지원 (선택사항) */
/*@media (prefers-color-scheme: dark) {
	body {
		background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	}

	.login-card {
		background: #1f2937;
		color: white;
		border: 1px solid rgba(255, 255, 255, 0.1);
	}

	.login-title, .login-title2 {
		color: white;
	}

  .login-subtitle {
    color: white;
  }

	.login-form-label {
		color: #d1d5db;
	}

	.login-form-input {
		background: #374151;
		border-color: #4b5563;
		color: white;
	}

	.login-form-input:focus {
		background: #4b5563;
		border-color: #667eea;
	}

	.popup-container {
		background: #1f2937;
		color: white;
	}

	.popup-form-input,
	.popup-form-select,
	.popup-form-textarea {
		background: #374151;
		border-color: #4b5563;
		color: white;
	}
}*/

/* 접근성 개선 */
/*.popup-form-input:focus,
.popup-form-select:focus,
.popup-form-textarea:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}*/

/* 스크린 리더용 숨김 텍스트 */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* ----------------------- */
/* 비밀번호 입력 + 눈 아이콘 */



/* 아이디 저장 / 비밀번호 재설정 라인 */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #111;
  font-size: 14px;
}

.remember-id input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* 비밀번호 재설정 링크 */
.pw-reset {
  font-size: 18px;
  color: #7b7f86;
  text-decoration: none;
}

.pw-reset:hover {
  color: #4b4f55;
  text-decoration: underline;
}

/* ------------------- */

.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  width: 420px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.modal-body {
  padding: 16px;
}

.modal-footer {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px solid #eee;
}

.modal input {
	width: 100%;
    height: 40px;
    margin-bottom: 10px;
    padding: 0 10px;
    box-sizing: border-box;
    background: #eaeaea;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
	border-radius: 6px;
}

.modal input:focus {
  border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.modal input[readonly] {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  height: 44px;
  background: #4f6ef7;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.btn-gray {
  width: 100%;
  height: 44px;
  background: #999;
  color: #fff;
  border: none;
}

.modal-header button {
    background: #fff;
   	border: none;
    cursor: pointer;
    color: #888;
   	border: none;
   font-weight: bold;
}

/* 비밀번호 보기 토글 */
/* 비밀번호 영역 */
.password-field {
  position: relative;
  width: 100%;
  min-height: 57px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.password-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 16px 83px 16px 20px;
  box-sizing: border-box;
  font-size: 14px;
}

/* 토글 버튼 */
.pw-toggle {
  z-index: 10;
  width: 20px;
  height: 20px;
  border: none;
  padding: 0;
  margin: 0;
  background: url("../img/icon-eye-new.png") no-repeat center / contain;
  cursor: pointer;
}

.pw-toggle.active {
  background: url("../img/icon-eye-on-new.png") no-repeat center / contain;
}

.erase-button {
  z-index: 10;
  width: 20px;
  height: 20px;
  border: none;
  padding: 0;
  margin: 0;
  background: url("/img/btn-close-new.png") no-repeat center / contain;
  cursor: pointer;
  display: none;
}

.erase-button.active {
  display: flex;
}

/* 비밀번호 보이는 상태 */
.pw-toggle.is-on {
  background-image: url("/img/icon-eye-on.svg");
}

/* 버튼 기본 효과 제거 */
.pw-toggle:focus,
.pw-toggle:active {
  outline: none;
  box-shadow: none;
}
