/* 회원가입 페이지 전용 스타일 */

/* 사용자명 필드 */
.username-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.username-field input {
    flex: 1;
    transition: border-color 0.3s ease;
}

.username-field input.available {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 1px #4CAF50;
}

.username-field input.duplicate {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 1px #f44336;
}



.username-field .check-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.username-field .check-icon:hover {
    transform: scale(1.1);
}

.username-field .check-icon.available {
    color: #4CAF50;
}

.username-field .check-icon.duplicate {
    color: #f44336;
}

.username-field .check-icon.invalid {
    color: #ff9800;
}

.username-field .check-icon.checking {
    opacity: 0.5;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 비밀번호 필드 */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.password-field input {
    flex: 1;
    transition: border-color 0.3s ease;
}

.password-field input.valid {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 1px #4CAF50;
}

.password-field input.invalid {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 1px #f44336;
}

/* 이메일 필드 */
.email-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.email-field input {
    flex: 1;
}

.email-field button {
    white-space: nowrap;
    min-width: 77px;
    height: 56px;
    padding: 17px 16px;
    font-size: 14px;
    background: #141428;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-field button:hover {
    background: #1a1a3a;
    transform: translateY(-2px);
}

.email-field button:disabled {
    background: #666;
    cursor: not-allowed;
}

/* 인증 메시지 */
.verification-message {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #e64646;
    margin-top: 8px;
}

/* 필드별 오류/성공 메시지 */
.field-message {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 13px;
    margin-top: 8px;
    padding: 0 4px;
    line-height: 1.4;
    display: block;
}

.field-message-error {
    color: #e64646 !important;
}

.field-message-success {
    color: #4CAF50 !important;
}

/* 약관 동의 섹션 */
.terms-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    box-sizing: border-box;
}

.terms-item-full {
    width: 100%;
}

.terms-item-limited {
    width: 259px;
}

.terms-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    color: #141428;
    line-height: 20px;
    flex: 1;
    font-weight: 400;
    letter-spacing: -0.32px;
}

.terms-link {
    text-decoration: underline;
    color: #141428;
    font-weight: 400;
    letter-spacing: -0.32px;
}

.terms-link:hover {
    opacity: 0.8;
}

/* 체크박스 스타일 */
.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-on {
    border: 2px solid #141428;
    background: #141428;
}

.checkbox-off {
    border: 2px solid #d8dadc;
    background: #ffffff;
}

.checkbox-on::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat;
    background-repeat: no-repeat;
    background-position: center;
}

/* 라디오 버튼 스타일 */
.radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-off {
    border-color: #d8dadc;
    background: #ffffff;
}

.radio-on {
    background: #ffffff;
}

.radio-on::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #141428;
    border-radius: 50%;
} 