@charset "utf-8";

input:read-only {border: 1px solid #e1e1e1;}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	padding: 0;
} 

 .signup-container {
	width: 500px;
	max-width: 500px;
	margin: 0;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 40px 30px; /* 기본 패딩 */
	position: relative;
	overflow: hidden; /* 라운딩 처리된 영역 안에 모든 내용 포함 */
}

.signup-title {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 600;
	color: #111;
	margin-bottom: 40px;
}

.signup-title2 {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 600;
	color: #111;
	margin-bottom: 20px;
}

.signup-subTitle {
	text-align: center;
	font-size: 1.3rem;
	font-weight: 600;
	color: #111;
	margin-bottom: 30px;
}


.form-group {
	margin-bottom: 15px;
	position: relative;
	min-height: 70px; /* 에러 메시지 공간 확보 */
}

/* 주민등록번호 form-group 특별 처리 */
.form-group:has(.ssn-group) {
	min-height: 80px;
	padding-bottom: 5px;
}

.form-label {
	display: block;
	font-size: 1.133rem;
	font-weight: 600;
	color: #111;
	/*margin-bottom: 10px;*/
}

.required {
	color: #ff3d3d;
	margin-right: 5px;
}

.form-input {
	width: 100%;
	height: 50px;
	padding: 0 0 0 5px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
	box-sizing: border-box;
}

.form-input:focus {
	outline: none;
	border-color: #17bf98;
}

/* 사업장 등록 전용 input 스타일 */
.form-input.underline {
	border: none;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 0;
}

.form-input.underline:focus {
	border-bottom: 2px solid #17bf98;
}

.form-input::placeholder {
	color: #c7c7c7;
}

.phone-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

.phone-select {
	flex: 0 0 70px;
	height: 50px;
	padding: 0 10px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
}

.phone-select.underline {
	border: none;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 0;
	background: url(../../img/ico_ts_down.png) no-repeat right center / 11px;
	padding-right: 25px;
	outline: none;
	transition: transform 0.2s ease;
}

.phone-select.underline.active {
	border-bottom: 2px solid #17bf98;
	outline: none;
	background: url(../../img/ico_ts_up.png) no-repeat right center / 11px;
}

.phone-input {
	flex: 1;
	height: 50px;
	padding: 0 0 0 5px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
}

.phone-input.underline {
	border: none;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 0;
}

.phone-input.underline:focus {
	border-bottom: 2px solid #17bf98;
}

/* 주민등록번호 입력 스타일 */
.ssn-group {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.ssn-input {
	height: 50px;
	padding: 0 0 0 5px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
	box-sizing: border-box;
}

.ssn-input:focus {
	outline: none;
	border-color: #17bf98;
}

.ssn-input.underline {
	border: none;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 0;
}

.ssn-input.underline:focus {
	border-bottom: 2px solid #17bf98;
}

.ssn-input[name="ssnFront"] {
	width: 50%;
}

.ssn-input[name="ssnBack"] {
	width: 100%;
}

.ssn-separator {
	font-size: 1.2rem;
	color: #8a8a8b;
	font-weight: 600;
}

.ssn-mask {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	color: #cfcfcf;
	letter-spacing: 2px;
	font-weight: 600;
	pointer-events: none;
	z-index: 1;
}

.verify-btn {
	flex: 0 0 70px;
	height: 40px;
	background: #f5f5f5;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	color: #8a8a8b;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s;
}

.verify-btn:hover {
	background: #e9e9e9;
}

.verify-btn.active {
	background: #17bf98;
	color: white;
	border-color: #17bf98;
}

/* 인증번호 입력 스타일 */
.verification-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

.verification-input {
	flex: 1;
	height: 50px;
	padding: 0 15px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
}

.verification-input:focus {
	outline: none;
	border-color: #17bf98;
}

.verification-input.underline {
	border: none;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 0;
}

.verification-input.underline:focus {
	border-bottom: 2px solid #17bf98;
}

.verification-timer {
	flex: 0 0 70px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 0.9rem;
	color: #8a8a8b;
}

.verification-timer.expired {
	color: #ff3d3d;
}

.next-btn {
	width: 450px;
	height: 60px;
	background: #17bf98;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
}

/* 회원가입 페이지 전용 버튼 스타일 */
.signup-container.fixed-height .next-btn {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	margin: 0;
	display: block;
	width: 450px;
}

.next-btn:hover {
	background: #12997a;
}

.next-btn:disabled {
	background: #c7c7c7;
	cursor: not-allowed;
}

.divider {
	height: 1px;
	background: #e1e1e1;
	margin: 20px 0;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
	.signup-container {
		width: calc(100% - 20px);
		max-width: none;
		margin: 0 auto;
		padding: 20px 15px;
		box-sizing: border-box;
	}
	.signup-title {
		font-size: 1.5rem;
		margin-bottom: 30px;
	}
	
	/* 약관명 글자 크기 조정 */
	.terms-item label {
		font-size: 0.9rem;
	}
	
	.terms-item .required,
	.terms-item .optional {
		font-size: 0.8rem;
	}
	.phone-group {
		flex-direction: row;
		gap: 8px;
		align-items: stretch;
	}
	.phone-select {
		flex: 0 0 80px;
		width: 80px;
		min-width: 80px;
		font-size: 0.9rem;
	}
	.phone-input {
		flex: 1;
		width: auto;
		min-width: 0;
	}
	.verify-btn {
		flex: 0 0 80px;
		width: 80px;
		min-width: 80px;
		padding: 0 5px;
		white-space: nowrap;
	}

	/* 주민등록번호 모바일 반응형 */
	.ssn-group {
		gap: 10px;
		align-items: flex-end;
		display: flex;
		width: 100%;
		padding-bottom: 2px;
	}
	.ssn-input[name="ssnFront"] {
		flex: 0 0 45%;
		box-sizing: border-box;
		border-bottom: 1px solid #e1e1e1;
	}
	.ssn-input[name="ssnBack"] {
		flex: 0 0 45%;
		box-sizing: border-box;
		border-bottom: 1px solid #e1e1e1;
	}
	.ssn-separator {
		display: inline-block;
		font-size: 1.2rem;
		color: #8a8a8b;
		font-weight: 600;
		flex: 0 0 auto;
		align-self: flex-end;
		padding-bottom: 2px;
	}
	.ssn-mask {
		right: 15px;
		font-size: 0.9rem;
		letter-spacing: 2px;
	}

	/* 인증번호 입력 모바일 반응형 */
	.verification-group {
		flex-direction: row;
		gap: 5px;
	}
	.verification-input {
		flex: 1;
		width: auto;
	}
	.verification-timer {
		flex: 0 0 60px;
		width: auto;
	}
	.verify-btn {
		flex: 0 0 60px;
		width: auto;
	}
}

/* 에러 상태 */
.ssn-input.error, .phone-input.error, .form-input.error,.verification-input.error {
	border-color: #8a8a8b;
    border-width: 2px; 
}

.error-message {
	color: #8a8a8b;
	font-size: 0.9rem;
	margin-top: 5px;
	visibility: hidden;
	opacity: 0;
	height: 20px;
	overflow: hidden;
	transition: opacity 0.3s ease;
}

.error-message.show {
	visibility: visible;
	opacity: 1;
}

.error-message.error {
	color: #ff3d3d;
}

.error-message.success {
	color: #17bf98;
}

/* 약관 관련 스타일 */
.terms-section {
	margin-bottom: 30px;
}

/* popup3 체크박스 스타일과 맞춤 - formHolder 방식 */
.terms-all-checkbox input[type="checkbox"],
.terms-item input[type="checkbox"] {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
}

.terms-all-checkbox label,
.terms-item label {
	display: block;
	font-size: 1.133rem;
	font-weight: 600;
	position: relative;
	padding-left: 36px;
	width: calc(100% - 60px);
	cursor: pointer;
}

.terms-all-checkbox label::before,
.terms-item label::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	background: url(../../img/ico_bg_check.png) no-repeat left center / 26px;
}

.terms-all-checkbox input[type="checkbox"]:checked + label::before,
.terms-item input[type="checkbox"]:checked + label::before {
	background-image: url(../../img/ico_bg_check_on.png);
}

/* popup3의 check term_sub 클래스와 동일한 스타일 */
.terms-item label.check.term_sub {
	display: flex;
	align-items: center;
	padding: 12px 0;
	width: 100%;
	font-size: 1rem;
	font-weight: 500;
	color: #111;
}

.terms-item label.check.term_sub::before {
	position: static;
	transform: none;
	width: 26px;
	height: 26px;
	background: url(../../img/ico_check.png) no-repeat center / 16px;
	margin-right: 12px;
	flex-shrink: 0;
	border: none;
	border-radius: 0;
}

.terms-item input[type="checkbox"]:checked + label.check.term_sub::before {
	background-image: url(../../img/ico_check_on.png);
	border: none;
}

.terms-item label.check.term_sub .btnView {
	width: 20px;
	height: 20px;
	background: url(../../img/ico_arr_right.png) no-repeat center / 12px;
	margin-left: auto;
	flex-shrink: 0;
}

/* 약관명과 보기 버튼 사이의 공간 확보 */
.terms-item label.check.term_sub {
	justify-content: flex-start;
}

.terms-item label.check.term_sub .btnView {
	margin-left: auto;
}

/* 약관 텍스트가 제대로 표시되도록 수정 */
.terms-item label.check.term_sub span {
	display: inline;
	font-size: 1rem;
	font-weight: 500;
}

.terms-item label.check.term_sub .required,
.terms-item label.check.term_sub .optional {
	font-size: 0.9rem;
	margin-left: 5px;
}

.terms-all-agree {
	background: #f8f9fa;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	padding: 10px 20px 10px 12px;
	margin-bottom: 10px;
}

.terms-all-checkbox {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	/*margin-bottom: 10px;*/
	height: 24px;
}


.terms-all-checkbox label {
	font-size: 1.1rem;
	font-weight: 600;
	color: #111;
	cursor: pointer;
	display: flex;
	align-items: center;
	line-height: 1;
	margin-left: 8px;
}

.terms-list {
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	overflow: hidden;
}

.terms-item {
	display: flex;
	align-items: center;
	/*padding-top: 12px;
	padding-bottom: 12px;*/
	padding-left: 20px;
	padding-right: 10px;
	border-bottom: 1px solid #e1e1e1;
	background: #fff;
}

.terms-item:last-child {
	border-bottom: none;
}


.terms-item label {
	flex: 1;
	font-size: 1rem;
	color: #111;
	cursor: pointer;
}

.terms-item .required {
	color: #8a8a8b;
	margin-left: 5px;
}

.terms-item .optional {
	color: #8a8a8b;
	margin-left: 5px;
	font-size: 0.9rem;
}

.terms-view-btn {
	background: none;
	border: 1px solid #17bf98;
	color: #17bf98;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	margin-left: 10px;
	transition: all 0.3s;
}

.terms-view-btn:hover {
	background: #17bf98;
	color: white;
}

.terms-error {
	color: #8a8a8b;
	font-size: 0.9rem;
	margin-top: 10px;
	display: none;
}

.terms-error.show {
	display: block;
}

/* 사업장 등록 페이지 전용 스타일 */
.step-tag {
	position: absolute;
	top: -10px;
	left: 20px;
	background: #ff3d3d;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
}

.title-section {
	text-align: center;
	margin-bottom: 30px;
}

.title-description {
	font-size: 1rem;
	color: #111;
	margin-top: 10px;
	margin-bottom: 0;
}

.input-with-button {
	display: flex;
	gap: 10px;
	align-items: center;
}

.input-with-button .form-input {
	flex: 1;
}

.lookup-btn {
	flex: 0 0 70px;
	height: 40px;
	background: #f5f5f5;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	color: #8a8a8b;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s;
}

.lookup-btn:hover {
	background: #e9e9e9;
}

.lookup-btn.active {
	background: #17bf98;
	color: white;
	border-color: #17bf98;
}

.status-messages {
	min-height: 60px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.status-message {
	font-size: 0.9rem;
	margin-top: 5px;
	visibility: hidden;
	opacity: 0;
	height: 0;
	overflow: hidden;
	transition: opacity 0.3s ease;
}

.status-message.show {
	visibility: visible;
	opacity: 1;
	height: auto;
}

.status-message.success {
	color: #17bf98;
}

.status-message.error {
	color: #ff3d3d;
}

.register-btn {
	width: 100%;
	height: 60px;
	background: #17bf98;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	margin-top: 20px;
}

.register-btn:hover:not(:disabled) {
	background: #12997a;
}

.register-btn:disabled {
	background: #c7c7c7;
	cursor: not-allowed;
}

.register-btn.active {
	background: #17bf98;
}

.register-btn.active:hover {
	background: #12997a;
}

/* 모바일 반응형 추가 */
@media screen and (max-width: 768px) {
	.input-with-button {
		flex-direction: row;
		gap: 8px;
		align-items: stretch;
	}
	
	.input-with-button .form-input {
		flex: 1;
		width: auto;
		min-width: 0;
	}
	
	.lookup-btn {
		flex: 0 0 80px;
		width: 80px;
		min-width: 80px;
		white-space: nowrap;
	}
	
	.step-tag {
		position: static;
		display: inline-block;
		margin-bottom: 20px;
	}
	
	.next-btn {
		width: calc(100% - 40px);
	}
}

/* 더 작은 모바일 화면 (480px 이하) */
@media screen and (max-width: 480px) {
	.signup-container {
		width: calc(100% - 10px);
		padding: 15px 10px;
	}
	
	.phone-group {
		flex-direction: row;
		gap: 8px;
		align-items: stretch;
	}
	
	.phone-select {
		flex: 0 0 70px;
		width: 70px;
		min-width: 70px;
		font-size: 0.85rem;
	}
	
	.phone-input {
		flex: 1;
		width: auto;
		min-width: 0;
	}
	
	.verify-btn {
		flex: 0 0 70px;
		width: 70px;
		min-width: 70px;
		height: 45px;
	}
	
	.ssn-group {
		flex-direction: row;
		gap: 8px;
		align-items: flex-end;
		display: flex;
		width: 100%;
		box-sizing: border-box;
		padding-bottom: 2px;
	}
	
	.ssn-separator {
		display: inline-block;
		font-size: 1.1rem;
		color: #8a8a8b;
		font-weight: 600;
		flex: 0 0 auto;
		align-self: flex-end;
		padding-bottom: 2px;
	}
	
	.ssn-input[name="ssnFront"] {
		flex: 0 0 40%;
		box-sizing: border-box;
		min-width: 0;
		border-bottom: 1px solid #e1e1e1;
	}
	
	.ssn-input[name="ssnBack"] {
		flex: 0 0 40%;
		box-sizing: border-box;
		min-width: 0;
		border-bottom: 1px solid #e1e1e1;
	}
	
	.verification-group {
		flex-direction: row;
		gap: 8px;
		align-items: stretch;
	}
	
	.verification-input {
		flex: 1;
		width: auto;
		min-width: 0;
	}
	
	.verification-timer {
		flex: 0 0 60px;
		width: 60px;
		min-width: 60px;
	}
	
	.verify-btn {
		flex: 0 0 70px;
		width: 70px;
		min-width: 70px;
	}
	
	.next-btn {
		width: calc(100% - 20px);
		left: 10px;
		transform: none;
	}
	
	/* input-with-button 모바일 반응형 추가 */
	.input-with-button {
		flex-direction: row;
		gap: 8px;
		align-items: stretch;
	}
	
	.input-with-button .form-input {
		flex: 1;
		width: auto;
		min-width: 0;
	}
	
	.lookup-btn {
		flex: 0 0 80px;
		width: 80px;
		min-width: 80px;
		white-space: nowrap;
	}
	
	/* 약관명 글자 크기 조정 (480px 이하) */
	.terms-item label {
		font-size: 0.85rem;
	}
	
	.terms-item .required,
	.terms-item .optional {
		font-size: 0.75rem;
	}
}

/* 회원가입 완료 페이지 전용 스타일 */
.celebration-section {
	margin: 40px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.celebration-emoji {
	font-size: 4rem;
	animation: clap 1.5s ease-in-out infinite;
	position: relative;
}

.celebration-emoji::before,
.celebration-emoji::after {
	content: '';
	position: absolute;
	width: 4px;
	height: 4px;
	background: #ccc;
	border-radius: 50%;
	animation: ripple 1.5s ease-in-out infinite;
}

.celebration-emoji::before {
	top: -10px;
	left: -15px;
	animation-delay: 0.2s;
}

.celebration-emoji::after {
	top: -5px;
	right: -15px;
	animation-delay: 0.4s;
}

@keyframes clap {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

@keyframes ripple {
	0% { 
		transform: scale(0);
		opacity: 1;
	}
	100% { 
		transform: scale(3);
		opacity: 0;
	}
}

.completion-btn {
	background: #17bf98;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	width: 100%;
	height: 60px;
	margin-top: 40px;
	position: static;
	left: auto;
	transform: none;
	bottom: auto;
}

.completion-btn:hover {
	background: #12997a;
}

.completion-btn:disabled {
	background: #c7c7c7;
	cursor: not-allowed;
}

 /* 회원가입 페이지 전용 높이 고정 */
 .signup-container.fixed-height {
	position: relative;
	padding: 40px 30px 70px 30px !important; /* 하단 여백 추가 */
}

.login-container {
	max-width: 500px;
	width: 90%;
	background: white;
	padding: 40px 30px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	text-align: center;
	z-index: 1;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
	.login-container {
		width: 95%;
		padding: 40px 20px;
		margin: 20px;
	}
	h1 {
		font-size: 20px;
	}
}

@media screen and (max-width: 480px) {
	.login-container {
		width: 98%;
		padding: 30px 15px;
		margin: 10px;
	}
	h1 {
		font-size: 18px;
	}
}

.logo {
	margin-bottom: 40px;
}
.logo img {
	max-width: 100%;
	height: 60px;
	object-fit: contain;
}
h1 {
	color: #333;
	/* margin-bottom: 20px; */
	font-size: 20px;
}
.kakao-btn {
	background-color: #FEE500;
	color: #000000;
	border: none;
	padding: 15px 30px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 15px;
	transition: background-color 0.3s;
}
.kakao-btn:hover {
	background-color: #FDD835;
}
.kakao-btn img {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}
.info {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}
.login-container .error {
	color: #e74c3c;
	background-color: #fdf2f2;
	padding: 10px;
	border-radius: 5px;
	margin-bottom: 20px;
	font-size: 14px;
}
.login-container-wrapper {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.login-container-wrapper .blur {
	backdrop-filter: blur(1px);
  width: 100%;
  height: 100vh;
	position: absolute;
  background: rgba(255, 255, 255, 0.2);
}
.login-container-wrapper .login-container .info {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.login-container-wrapper .login-container .info a {
	width: 100%;
	max-width: 91.5px;
	padding: 12px 10px;
  border-radius: 8px;
}
.login-container-wrapper .login-container .info a:hover {
	background-color: rgba(2, 32, 71, 0.05);
}