@charset "utf-8";

input:read-only {border: 1px solid #e1e1e1;} 

 .signup-container {
	max-width: 500px;
	margin: 50px auto;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 40px 30px;
}

.signup-title {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 600;
	color: #111;
	margin-bottom: 40px;
}

.form-group {
	margin-bottom: 15px;
	position: relative;
}

.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 15px;
	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;
}

.form-input::placeholder {
	color: #c7c7c7;
}

.phone-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

.phone-select {
	flex: 0 0 80px;
	height: 50px;
	padding: 0 10px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
}

.phone-input {
	flex: 1;
	height: 50px;
	padding: 0 15px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
}

/* 주민등록번호 입력 스타일 */
.ssn-group {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.ssn-input {
	height: 50px;
	padding: 0 15px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #111;
	background: #fff;
}

.ssn-input:focus {
	outline: none;
	border-color: #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 80px;
	height: 50px;
	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-timer {
	flex: 0 0 80px;
	height: 50px;
	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: 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;
}

.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 {
		margin: 20px auto;
		padding: 30px 20px;
	}
	.signup-title {
		font-size: 1.5rem;
		margin-bottom: 30px;
	}
	.phone-group {
		flex-direction: column;
		gap: 10px;
	}
	.phone-select, .phone-input, .verify-btn {
		width: 100%;
		flex: none;
	}

	/* 주민등록번호 모바일 반응형 */
	.ssn-group {
		gap: 10px;
		align-items: stretch;
	}
	.ssn-input[name="ssnFront"] {
		width: 50%;
	}
	.ssn-input[name="ssnBack"] {
		width: 100%;
	}
	.ssn-separator {
		display: none;
	}
	.ssn-mask {
		right: 15px;
		font-size: 0.9rem;
		letter-spacing: 2px;
	}

	/* 인증번호 입력 모바일 반응형 */
	.verification-group {
		flex-direction: column;
		gap: 10px;
	}
	.verification-input, .verification-timer, .verify-btn {
		width: 100%;
		flex: none;
	}
}

/* 에러 상태 */
.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;
	display: none;
}

.error-message.show {
	display: block;
}

/* 약관 관련 스타일 */
.terms-section {
	margin-bottom: 30px;
}

.terms-all-agree {
	background: #f8f9fa;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 10px;
	padding-bottom: 5px;
}

.terms-all-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.terms-all-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-right: 10px;
	accent-color: auto;
	display: inline-block;
	appearance: auto;
	-webkit-appearance: auto;
	-moz-appearance: auto;
}

.terms-all-checkbox label {
	font-size: 1.1rem;
	font-weight: 600;
	color: #111;
	cursor: pointer;
}

.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: 36px;
	padding-right: 10px;
	border-bottom: 1px solid #e1e1e1;
	background: #fff;
}

.terms-item:last-child {
	border-bottom: none;
}

.terms-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 12px;
	accent-color: auto;
	display: inline-block;
	appearance: auto;
	-webkit-appearance: auto;
	-moz-appearance: auto;
}

.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;
}
